1
1
mirror of https://github.com/wez/wezterm.git synced 2024-09-21 03:39:16 +03:00

fixup build for macos after notify_rust updates

This commit is contained in:
Wez Furlong 2020-12-09 14:30:18 -08:00
parent 1635576413
commit 30ff3d6542

View File

@ -298,11 +298,17 @@ fn run_terminal_gui(config: config::ConfigHandle, opts: StartCommand) -> anyhow:
fn toast_notification(title: &str, message: &str) { fn toast_notification(title: &str, message: &str) {
#[cfg(not(windows))] #[cfg(not(windows))]
{ {
notify_rust::Notification::new() #[allow(unused_mut)]
.summary(title) let mut notif = notify_rust::Notification::new();
.body(message) notif.summary(title).body(message);
#[cfg(not(target_os = "macos"))]
{
// Stay on the screen until dismissed // Stay on the screen until dismissed
.hint(notify_rust::Hint::Resident(true)) notif.hint(notify_rust::Hint::Resident(true));
}
notif
// timeout isn't respected on macos // timeout isn't respected on macos
.timeout(0) .timeout(0)
.show() .show()