diff options
author | Saptak S <saptak013@gmail.com> | 2021-08-14 13:37:44 +0530 |
---|---|---|
committer | Saptak S <saptak013@gmail.com> | 2021-08-14 13:37:44 +0530 |
commit | b6315c6bcf701347ff86de146f7a4206d9bb17bd (patch) | |
tree | 29177be8de46c97ebafb9638cebfe80ed4a24d34 /desktop | |
parent | aef4ba9bedb5fce4eea169c543664cb86707c71d (diff) | |
download | onionshare-b6315c6bcf701347ff86de146f7a4206d9bb17bd.tar.gz onionshare-b6315c6bcf701347ff86de146f7a4206d9bb17bd.zip |
Adds alert asking user to restart OnionShare to apply color mode change after changing it in settings
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/src/onionshare/settings_dialog.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/desktop/src/onionshare/settings_dialog.py b/desktop/src/onionshare/settings_dialog.py index a29c4ee8..e8d2752c 100644 --- a/desktop/src/onionshare/settings_dialog.py +++ b/desktop/src/onionshare/settings_dialog.py @@ -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() |