From 491fc23e68629e62f295dccf689adbc714f536cc Mon Sep 17 00:00:00 2001 From: Daniel Seichter Date: Sun, 9 Jun 2024 16:07:19 +0200 Subject: [PATCH] Fix pep8 issues --- src/configuration_ui.py | 5 ++--- src/githubissueclient.py | 2 +- src/settings.py | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/configuration_ui.py b/src/configuration_ui.py index 58f0566..5dd2b12 100644 --- a/src/configuration_ui.py +++ b/src/configuration_ui.py @@ -27,10 +27,9 @@ def showConfig(self, event): self.radiobuttonGHE.SetValue(not config['use_github']) self.textGHEURL.SetValue(config['ghe_url']) self.checkboxUpdate.SetValue(config['update_check']) - + self.Layout() self.Fit() - def saveConfig(self, event): # save the config @@ -44,4 +43,4 @@ def saveConfig(self, event): self.Close() def closeConfig(self, event): - self.Close() \ No newline at end of file + self.Close() diff --git a/src/githubissueclient.py b/src/githubissueclient.py index 71766e1..da9c4bf 100644 --- a/src/githubissueclient.py +++ b/src/githubissueclient.py @@ -51,7 +51,7 @@ def gicShow(self, event): # load the repositories self.loadRepositories(event) - + if settings.read_config()['update_check']: if helper.check_for_new_release(): wx.MessageBox('A new release is available.\nWould you like to open the download page?', 'Update available', wx.YES_NO | wx.ICON_INFORMATION) diff --git a/src/settings.py b/src/settings.py index e038eab..8306663 100644 --- a/src/settings.py +++ b/src/settings.py @@ -26,7 +26,7 @@ def create_config(): if 'ghe_url' not in data: data['ghe_url'] = '' if 'update_check' not in data: - data['update_check'] = True + data['update_check'] = True with open(CONFIGFILE, 'w') as f: json.dump(data, f, indent=4, sort_keys=True)