You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Script setting changes are not applied and Reload scripting engine does not reload #3861
Saving changed script settings should apply them to the running script without restarting QOwnNotes. Clicking Reload scripting engine should reload the engine even when no script was enabled or disabled, so edits to settings or to a local QML file take effect.
Actual behaviour
QOwnNotes saves the new setting, but the running script keeps the previous value. With a fetchUrlTitleHook script that uses glab for configured GitLab servers, a newly added server was ignored and the link dialog fell back to fetching the web page, yielding Sign in · GitLab. The same authenticated glab lookup succeeded from the terminal, and restarting QOwnNotes made the hook return the project name.
Steps to reproduce
Install and enable a script with a configurable setting. For the observed case, use a fetchUrlTitleHook that handles GitLab project URLs only on hosts listed in a script setting.
In Settings → Scripting, change the value (for example, add a GitLab server). Leave all scripts’ enabled states unchanged and click OK.
Invoke the script again (for example, paste a private project URL from the newly added host into a fresh link dialog). The script still uses the old setting.
Restart QOwnNotes and repeat the action. The script now uses the saved setting.
Environment and likely cause
QOwnNotes 26.11.14 on NixOS 26.11
glab 1.130.0 in the original reproduction; the problem is in QOwnNotes’ script settings lifecycle, not GitLab authentication.
In ScriptingSettingsWidget::storeScriptListEnabledState(), the reload is conditional on an enabled-state change. The explicit reload button handler calls the same conditional function without forcing a reload. This looks related to the settings performance change in issue #3606. Tracking changed script settings separately and forcing a reload on an explicit button click would preserve the optimization for unchanged settings.
Fixed for QOwnNotes 26.11.15. Clicking OK in Settings → Scripting now applies changed script settings to running scripts without restarting QOwnNotes. Both Reload scripting engine buttons now pick up local QML edits even when no scripts were enabled or disabled. Saving unchanged settings still skips the reload.
The local Qt 6 test suite passed, including a regression test that checks all three behaviors with a local fetchUrlTitleHook script.
Activity
#3861 scripting: apply script settings and restore manual reload
#3861 tests: link scripting settings widget dependencies
pbek commentedon Nov 24, 2026
Fixed for QOwnNotes 26.11.15. Clicking OK in Settings → Scripting now applies changed script settings to running scripts without restarting QOwnNotes. Both Reload scripting engine buttons now pick up local QML edits even when no scripts were enabled or disabled. Saving unchanged settings still skips the reload.
The local Qt 6 test suite passed, including a regression test that checks all three behaviors with a local
fetchUrlTitleHookscript.#3861 scripting: apply script settings and restore manual reload
#3861 tests: link scripting settings widget dependencies