From 397ed9ade9e20b15d3a14693edb9569dfcee3ede Mon Sep 17 00:00:00 2001 From: Jean-Philippe Orsini Date: Sun, 12 Feb 2017 16:08:58 +0100 Subject: [PATCH] Fixed hide on startup preference (Francis Chin). (LP: #1642029). --- NEWS | 3 ++- src/cfg.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) 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; -- 2.7.4