From: Jean-Philippe Orsini Date: Sun, 12 Feb 2017 15:08:58 +0000 (+0100) Subject: Fixed hide on startup preference (Francis Chin). (LP: #1642029). X-Git-Url: http://git.wpitchoune.net/gitweb/?p=psensor.git;a=commitdiff_plain;h=397ed9ade9e20b15d3a14693edb9569dfcee3ede Fixed hide on startup preference (Francis Chin). (LP: #1642029). --- diff --git a/NEWS b/NEWS index 1e9d4ae..69fae41 100644 --- a/NEWS +++ b/NEWS @@ -8,7 +8,8 @@ v1.2.1 asciidoc. * added support of BCM2835 which is mostly used in the Raspberry PI3. * Fresh install of 1.2.0 complains about missing sensor config - keys. (LP :#1650378) + keys. (LP: #1650378) +* Fixed hide on startup preference (Francis Chin). (LP: #1642029). v1.2.0 ------ diff --git a/src/cfg.c b/src/cfg.c index 61e8b0c..d903478 100644 --- a/src/cfg.c +++ b/src/cfg.c @@ -445,6 +445,8 @@ struct config *config_load(void) c->window_divider_pos = get_int(KEY_INTERFACE_WINDOW_DIVIDER_POS); + c->hide_on_startup = get_bool(KEY_INTERFACE_HIDE_ON_STARTUP); + if (!c->window_restore_enabled || !c->window_w || !c->window_h) { c->window_w = 800; c->window_h = 200;