diff --git a/src/main.rs b/src/main.rs index 4bf3e6a..428047d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -50,7 +50,6 @@ fn main() { let app = adw::Application::builder() .application_id("fr.linkmauve.XmppClient") - .flags(gio::ApplicationFlags::HANDLES_COMMAND_LINE) .build(); let tabs_store = gio::ListStore::new::(); @@ -73,7 +72,7 @@ fn main() { } }); - app.connect_startup(move |app| { + app.connect_activate(move |app| { let win = window::MainWindow::new(app); let action_close = gio::ActionEntry::builder("close")