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:
parent
1635576413
commit
30ff3d6542
@ -298,11 +298,17 @@ fn run_terminal_gui(config: config::ConfigHandle, opts: StartCommand) -> anyhow:
|
||||
fn toast_notification(title: &str, message: &str) {
|
||||
#[cfg(not(windows))]
|
||||
{
|
||||
notify_rust::Notification::new()
|
||||
.summary(title)
|
||||
.body(message)
|
||||
#[allow(unused_mut)]
|
||||
let mut notif = notify_rust::Notification::new();
|
||||
notif.summary(title).body(message);
|
||||
|
||||
#[cfg(not(target_os = "macos"))]
|
||||
{
|
||||
// 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(0)
|
||||
.show()
|
||||
|
Loading…
Reference in New Issue
Block a user