From d43fc268f461bbaa870874e5033bbcb40ce6d46f Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Thu, 26 Jul 2018 07:07:56 +0300 Subject: [PATCH] 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. --- podcasts-gtk/src/app.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/podcasts-gtk/src/app.rs b/podcasts-gtk/src/app.rs index 02bc993..9eccb99 100644 --- a/podcasts-gtk/src/app.rs +++ b/podcasts-gtk/src/app.rs @@ -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.