mirror of
https://github.com/onionshare/onionshare.git
synced 2025-06-07 06:13:03 -04:00
Adds alert asking user to restart OnionShare to apply color mode change after changing it in settings
This commit is contained in:
parent
1b2e1e6ebf
commit
b68e90bd44
1 changed files with 6 additions and 0 deletions
|
@ -843,6 +843,12 @@ class SettingsDialog(QtWidgets.QDialog):
|
||||||
notice = strings._("gui_settings_language_changed_notice")
|
notice = strings._("gui_settings_language_changed_notice")
|
||||||
Alert(self.common, notice, QtWidgets.QMessageBox.Information)
|
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
|
# Save the new settings
|
||||||
settings.save()
|
settings.save()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue