[geany/geany] 4a5ccf: Fix backward compatibility of the geometry saving setting
Colomban Wendling
git-noreply at xxxxx
Tue Nov 14 22:11:34 UTC 2017
Branch: refs/heads/master
Author: Colomban Wendling <ban at herbesfolles.org>
Committer: Thomas Martitz <kugel at rockbox.org>
Date: Tue, 14 Nov 2017 22:11:34 UTC
Commit: 4a5ccf748ac2ce13a6c71cc41b354c33b6abd715
https://github.com/geany/geany/commit/4a5ccf748ac2ce13a6c71cc41b354c33b6abd715
Log Message:
-----------
Fix backward compatibility of the geometry saving setting
Keep the previous behavior if the user had disabled saving window
position and geometry, by using the existing setting as default for the
new one.
Modified Paths:
--------------
src/keyfile.c
Modified: src/keyfile.c
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -760,7 +760,7 @@ static void load_dialog_prefs(GKeyFile *config)
project_prefs.project_session = utils_get_setting_boolean(config, PACKAGE, "pref_main_project_session", TRUE);
project_prefs.project_file_in_basedir = utils_get_setting_boolean(config, PACKAGE, "pref_main_project_file_in_basedir", FALSE);
prefs.save_winpos = utils_get_setting_boolean(config, PACKAGE, "pref_main_save_winpos", TRUE);
- prefs.save_wingeom = utils_get_setting_boolean(config, PACKAGE, "pref_main_save_wingeom", TRUE);
+ prefs.save_wingeom = utils_get_setting_boolean(config, PACKAGE, "pref_main_save_wingeom", prefs.save_winpos);
prefs.beep_on_errors = utils_get_setting_boolean(config, PACKAGE, "beep_on_errors", TRUE);
prefs.switch_to_status = utils_get_setting_boolean(config, PACKAGE, "switch_msgwin_pages", FALSE);
prefs.auto_focus = utils_get_setting_boolean(config, PACKAGE, "auto_focus", FALSE);
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list