Skip to content

Commit

Permalink
Fixed issue where Don't show this message again request wouldn't be r…
Browse files Browse the repository at this point in the history
…espected

(if the user closed the window instead of clicking 'OK')
  • Loading branch information
Ahsoka committed Jul 14, 2021
1 parent 36a29f3 commit 43229fc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions beskar/popups.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,9 @@ def __init__(self, main_window):
self.main_layout.addWidget(self.dont_show_again, alignment=QtCore.Qt.AlignmentFlag.AlignRight)
self.main_layout.addWidget(self.ok_button, alignment=QtCore.Qt.AlignmentFlag.AlignRight)

def closeEvent(self, close_event):
self.main_window.settings['show-mocked-mode'] = self.show_again

@QtCore.pyqtSlot()
def on_ok_button_clicked(self):
self.main_window.settings['show-mocked-mode'] = self.show_again
Expand Down

0 comments on commit 43229fc

Please sign in to comment.