Adds alert asking user to restart OnionShare to apply color mode change after changing it in settings

This commit is contained in:
Saptak S 2021-08-14 13:37:44 +05:30
parent 1b2e1e6ebf
commit b68e90bd44

View File

@ -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()