Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
dignow
2023-06-29 20:41:33 +08:00
parent 1f71dc979c
commit 8899786628
2 changed files with 6 additions and 2 deletions

View File

@@ -488,7 +488,11 @@ extern "C" fn notify_callback(conn_id: UINT32, msg: *const NOTIFICATION_MESSAGE)
}
);
let title = "Clipboard";
let text = format!("{}: {}", m, d);
let text = if d.is_empty() {
m.to_string()
} else {
format!("{} {}", m, d)
};
ClipboardFile::NotifyCallback {
r#type: msgtype,
title: title.to_string(),