App: Only execute .show_all() at startup.

If you would had an instance running and activate the app again
the UI would break visually in all kind of ways.
This commit is contained in:
Jordan Petridis 2018-07-26 07:07:56 +03:00
parent 5a7ab9795d
commit d43fc268f4
No known key found for this signature in database
GPG Key ID: CEABAD9F5683B9A6

View File

@ -305,9 +305,9 @@ impl App {
info!("Init complete");
application.connect_activate(clone!(app => move |_| {
info!("GApplication::activate");
app.window.show_all();
app.window.activate();
}));
app.window.show_all();
}));
// Weird magic I copy-pasted that sets the Application Name in the Shell.