From 878043a502fabac51e69a4dd550572b67c41f785 Mon Sep 17 00:00:00 2001 From: jszczerbinsky Date: Fri, 8 Mar 2024 18:56:56 +0000 Subject: [PATCH] Hiding window on start --- src/core/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/main.c b/src/core/main.c index 4be7984..0ecca84 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -90,8 +90,6 @@ static void activate(GtkApplication *app, gpointer userdata) if (!alreadyRunning) { - alreadyRunning = 1; - char gladefilePath[PATH_MAX]; getAppDir(gladefilePath, APP_DIR_SHARE); #ifdef __WIN32 @@ -141,7 +139,9 @@ static void activate(GtkApplication *app, gpointer userdata) reloadMonitorListBox(); - gtk_widget_set_visible(mainWnd, 1); + if (alreadyRunning) gtk_widget_set_visible(mainWnd, 1); + + alreadyRunning = 1; } int main(int argc, char *argv[])