mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-10 11:47:27 -03:00
Adds alert asking user to restart OnionShare to apply color mode change after changing it in settings
This commit is contained in:
parent
aef4ba9bed
commit
b6315c6bcf
1 changed files with 6 additions and 0 deletions
|
@ -843,6 +843,12 @@ class SettingsDialog(QtWidgets.QDialog):
|
|||
notice = strings._("gui_settings_language_changed_notice")
|
||||
Alert(self.common, notice, QtWidgets.QMessageBox.Information)
|
||||
|
||||
|
||||
# If color mode changed, inform user they need to restart OnionShare
|
||||
if changed(settings, self.old_settings, ["theme"]):
|
||||
notice = strings._("gui_color_mode_changed_notice")
|
||||
Alert(self.common, notice, QtWidgets.QMessageBox.Information)
|
||||
|
||||
# Save the new settings
|
||||
settings.save()
|
||||
|
||||
|
|
Loading…
Reference in a new issue