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 aef4ba9bed
commit b6315c6bcf
No known key found for this signature in database
GPG key ID: 2D9B32E54C68A3FB

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