Skip to content

Commit

Permalink
removed default buttons from update notification
Browse files Browse the repository at this point in the history
  • Loading branch information
razaqq committed Mar 4, 2020
1 parent e2ff81e commit 0a5e75f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gui/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,10 @@ def notify_update(self):
box.setText('There is a new version available.\nWould you like to update now?')
box.setStandardButtons(QMessageBox.Yes | QMessageBox.No)
box.setEscapeButton(QMessageBox.No)
box.button(QMessageBox.Yes).setDefault(False)
box.button(QMessageBox.Yes).setAutoDefault(False)
box.button(QMessageBox.No).setDefault(False)
box.button(QMessageBox.No).setAutoDefault(False)
box.setAttribute(Qt.WA_TranslucentBackground)

layout = QHBoxLayout()
Expand Down

0 comments on commit 0a5e75f

Please sign in to comment.