def plugin_loaded(): global watchdog, settings settings = load_settings() Log._set_verbosity(settings.verbosity) StackIDEManager.configure(settings) Win.show_popup = settings.show_popup watchdog = StackIDEWatchdog()
def on_settings_changed(): global settings updated_settings = load_settings() if updated_settings.verbosity != settings.verbosity: Log._set_verbosity(updated_settings.verbosity) elif updated_settings.add_to_PATH != settings.add_to_PATH: Log.normal("Settings changed, reloading backends") StackIDEManager.configure(updated_settings) StackIDEManager.reset() elif updated_settings.show_popup != settings.show_popup: Win.show_popup = updated_settings.show_popup settings = updated_settings