feat: setup packager and auto-updater

This commit is contained in:
2025-02-11 09:13:08 +07:00
parent 1bb9729e75
commit f5f9b66df5
16 changed files with 76 additions and 67 deletions

View File

@@ -340,12 +340,9 @@ impl NotificationList {
// Sleep for 3 seconds to autohide the notification
cx.spawn_in(window, |_, mut cx| async move {
Timer::after(Duration::from_secs(3)).await;
if let Err(err) = notification.update_in(&mut cx, |note, window, cx| {
_ = notification.update_in(&mut cx, |note, window, cx| {
note.dismiss(&ClickEvent::default(), window, cx)
}) {
println!("failed to auto hide notification: {:?}", err);
}
});
})
.detach();
}