From b6315c6bcf701347ff86de146f7a4206d9bb17bd Mon Sep 17 00:00:00 2001 From: Saptak S Date: Sat, 14 Aug 2021 13:37:44 +0530 Subject: [PATCH] Adds alert asking user to restart OnionShare to apply color mode change after changing it in settings --- desktop/src/onionshare/settings_dialog.py | 6 ++++++ 1 file changed, 6 insertions(+) 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()