Skip to content

Commit

Permalink
edit displayed text on orange restart dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
JakaKokosar committed Feb 15, 2019
1 parent c3cc9c7 commit 5bdfdf0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Orange/canvas/application/addons.py
Original file line number Diff line number Diff line change
Expand Up @@ -781,13 +781,13 @@ def message_restart(parent):
icon = QMessageBox.Information
buttons = QMessageBox.Ok | QMessageBox.Cancel
title = 'Information'
text = 'A restart of the application is necessary for the ' \
'changes to take effect.'
text = 'Orange needs to be restarted for the changes to take effect.'

msg_box = QMessageBox(icon, title, text, buttons, parent)
msg_box.setDefaultButton(QMessageBox.Ok)
msg_box.button(QMessageBox.Ok).setText('Restart now')
msg_box.button(QMessageBox.Cancel).setText('Restart later')
msg_box.setInformativeText('Press OK to close Orange now.')

msg_box.button(QMessageBox.Cancel).setText('Close later')
return msg_box.exec_()

if QMessageBox.Ok == message_restart(self):
Expand Down
7 changes: 3 additions & 4 deletions Orange/canvas/application/canvasmain.py
Original file line number Diff line number Diff line change
Expand Up @@ -1706,11 +1706,10 @@ def open_addons(self):
return dlg.exec_()

def reset_widget_settings(self):
res = message_question(
"A restart of the application is necessary for the " +
"changes to take effect.",
res = message_information(
"Orange needs to be restarted for the changes to take effect.",
title="Clear settings",
informative_text="Press OK to restart.",
informative_text="Press OK to close Orange now.",
buttons=QMessageBox.Ok | QMessageBox.Cancel,
default_button=QMessageBox.Ok,
parent=self
Expand Down

0 comments on commit 5bdfdf0

Please sign in to comment.