From ecdd65e0acac1def38fce915d810db940280232e Mon Sep 17 00:00:00 2001 From: Athanasius Date: Tue, 30 Jun 2020 15:22:50 +0100 Subject: [PATCH] prefs.py change for that output settings fix Addresses #407 --- prefs.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/prefs.py b/prefs.py index 329869c6..f3f7d0c8 100644 --- a/prefs.py +++ b/prefs.py @@ -103,7 +103,10 @@ class PreferencesDialog(tk.Toplevel): outframe = nb.Frame(notebook) outframe.columnconfigure(0, weight=1) - output = config.getint('output') or config.OUT_SHIP # default settings + if not config.getint('PrefsDidSave'): + output = config.OUT_SHIP # default settings + else: + output = config.getint('output') self.out_label = nb.Label(outframe, text=_('Please choose what data to save')) self.out_label.grid(columnspan=2, padx=PADX, sticky=tk.W) @@ -499,6 +502,7 @@ class PreferencesDialog(tk.Toplevel): def apply(self): + config.set('PrefsDidSave', 1) config.set('output', (self.out_td.get() and config.OUT_MKT_TD) + (self.out_csv.get() and config.OUT_MKT_CSV) +