X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Fui.c;h=f71b84e825e7af351158db18781183cc8107b04a;hb=276294af0c56ea5cd7d7b11349a893852245f348;hp=910e52f399fb95188046a1d3434e680d69033164;hpb=89f933625c13ceb825059b5499484de9664e0d2e;p=psensor.git diff --git a/src/ui.c b/src/ui.c index 910e52f..f71b84e 100644 --- a/src/ui.c +++ b/src/ui.c @@ -187,7 +187,10 @@ void ui_window_create(struct ui_psensor *ui) ui->main_window = window; ui->menu_bar = menubar; - gtk_widget_show_all(ui->main_window); + if (ui->config->hide_on_startup) + gtk_widget_show_all(ui->main_box); + else + gtk_widget_show_all(ui->main_window); } static void menu_bar_show(unsigned int show, struct ui_psensor *ui)