use relm4::view!

This commit is contained in:
ranfdev
2023-10-23 18:13:41 +02:00
parent be6ce20b97
commit 975417f1cd
4 changed files with 94 additions and 108 deletions

View File

@ -10,7 +10,7 @@ use gtk::prelude::*;
use gtk::{gdk, gio, glib};
use ntfy_daemon::models;
use ntfy_daemon::ntfy_capnp::system_notifier;
use tracing::{debug, info};
use tracing::{debug, info, warn};
use crate::config::{APP_ID, PKGDATADIR, PROFILE, VERSION};
use crate::widgets::*;
@ -69,7 +69,9 @@ mod imp {
}
glib::MainContext::default().spawn_local(async move {
super::NotifyApplication::run_in_background().await.unwrap();
if let Err(e) = super::NotifyApplication::run_in_background().await {
warn!(error = %e, "couldn't request running in background from portal");
}
});
if is_daemon {