Skip to content

Commit

Permalink
Hiding window on start
Browse files Browse the repository at this point in the history
  • Loading branch information
jszczerbinsky committed Mar 8, 2024
1 parent 14a1ab7 commit 878043a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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[])
Expand Down

0 comments on commit 878043a

Please sign in to comment.