diff --git a/app/routes.py b/app/routes.py index 94c1ddf..ef52f62 100644 --- a/app/routes.py +++ b/app/routes.py @@ -16,7 +16,9 @@ import string import glob import time import qrcode -from app.change_manager import CHANGES_REQUIRING_RESTART + +CHANGES_REQUIRING_RESTART = ['wifi_password', 'ssid', 'enable_access_point', 'enable_chat', 'enable_delta_chat', 'butterbox_hostname', 'ssh_access_settings', 'root_account_settings'] + def gen_username() -> str: words = top_n_list("en", 5000) @@ -205,7 +207,7 @@ def admin(): form.admin_password.errors.append( _("New admin password same as old password. Not changing.")) if app.config['SETTINGS_CHANGED']: - flash(_("⚠️ Some settings won't fully take effect until the Butter Box restarts. Click 'Apply Changes' to restart.")) + flash(_("⚠️ Some settings may not fully take effect until the Butter Box restarts. Click 'Apply Changes' to restart.")) else: if non_admin_settings_changed: flash( @@ -215,7 +217,7 @@ def admin(): if form.apply_changes.data: set_setting('apply_changes', "true") dump_settings("settings.txt") - flash(_("⚠️ Changes applied! Please wait for the box to restart.")) + flash(_("⚠️ Changes applied! If needed, the system will restart. This may take up to two minutes.")) return render_template('admin.html', raspap_installed=raspap_installed, get_setting=get_setting, form=form)