install

installer
Log | Files | Refs | README | LICENSE | git clone https://git.ne02ptzero.me/git/install

commit 24d47432e54196d9cec620591781867561e3ee5f
parent 07feafc16aecadd4b7ef7ce6ad9c22189e086df3
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Tue, 22 Nov 2016 18:16:59 +0100

Fix(Options): Fix a bug in Options:

If the screen was not shown, default options were never saved.

Diffstat:
Mscreens/options/options.py | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/screens/options/options.py b/screens/options/options.py @@ -58,6 +58,13 @@ class Options: "id": 5, "name": "Options Menu" } + + # Fill the default options (in case the user never goes on this screen) + res_opt = {} + for i, opt in enumerate(self.options): + if opt[2]: + res_opt[opt[0]] = True + self.conf_lst["config"] = res_opt return self.config # main function, called by Main instance