Skip to content

Commit

Permalink
Tweak code ordering, comment
Browse files Browse the repository at this point in the history
  • Loading branch information
eloquence committed Apr 9, 2020
1 parent bd743e0 commit e75c7c3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions launcher/sdw_updater_gui/UpdaterApp.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,18 @@ def __init__(self, parent=None):
self.progress = 0
self.setupUi(self)

self.cancelButton.setEnabled(True)
self.cancelButton.show()
self.cancelButton.clicked.connect(self.exit_launcher)
# We use a single dialog with button visibility toggled at different
# stages. In the first stage, we only show the "Start Updates" and
# "Cancel" buttons.

self.applyUpdatesButton.setEnabled(True)
self.applyUpdatesButton.show()
self.applyUpdatesButton.clicked.connect(self.apply_all_updates)

self.cancelButton.setEnabled(True)
self.cancelButton.show()
self.cancelButton.clicked.connect(self.exit_launcher)

self.clientOpenButton.setEnabled(False)
self.clientOpenButton.hide()
self.clientOpenButton.clicked.connect(launch_securedrop_client)
Expand Down

0 comments on commit e75c7c3

Please sign in to comment.