qt: update tabs on exit of SettingsDialog
Update the tabs after the SettingsDialog gets closed, some values might have to be updated according to the new configuration.
This commit is contained in:
@@ -2720,6 +2720,10 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger, QtEventListener):
|
||||
run_hook('close_settings_dialog')
|
||||
if d.need_restart:
|
||||
self.show_warning(_('Please restart Electrum to activate the new GUI settings'), title=_('Success'))
|
||||
else:
|
||||
# Some values might need to be updated if settings have changed.
|
||||
# For example 'Can send' in the lightning tab will change if the fees config is changed.
|
||||
self.refresh_tabs()
|
||||
|
||||
def _show_closing_warnings(self) -> bool:
|
||||
"""Show any closing warnings and return True if the user chose to quit anyway."""
|
||||
|
||||
Reference in New Issue
Block a user