Skip to content

Commit

Permalink
Fix pep8 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Seichter committed Jun 9, 2024
1 parent ccff2e9 commit 491fc23
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/configuration_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -44,4 +43,4 @@ def saveConfig(self, event):
self.Close()

def closeConfig(self, event):
self.Close()
self.Close()
2 changes: 1 addition & 1 deletion src/githubissueclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 491fc23

Please sign in to comment.