Live mode: remember the start warning and "always" across restarts

Live mode asked at every start (the "Mode direct" warning) and forgot
"always" for scripts when QElectroTech closed, so a user who works
with an assistant every day re-enabled it every day. Both are now
opt-in and remembered: the warning has a "Ne plus demander au
démarrage" checkbox (scripting/live_skip_warning), and the ask-first
choice is saved (scripting/live_ask_first; the Assistant panel's
checkbox and "Toujours" in the script window). The status bar still
shows live mode whenever it is open. Switching live mode off in the
settings clears "don't ask again", so turning it back on warns again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ispyisail
2026-10-05 19:11:47 +13:00
parent ecf995174e
commit 550dcdda71
5 changed files with 62 additions and 6 deletions
+1 -1
View File
@@ -4086,7 +4086,7 @@ void QETDiagramEditor::setUpLiveIndicator()
auto *dock_layout = new QVBoxLayout(content);
auto *ask = new QCheckBox(tr("Demander avant d'exécuter un script écrit par l'assistant"), content);
ask->setChecked(LiveServer::instance().askFirst());
ask->setToolTip(tr("Pour cette session seulement : chaque démarrage redemande"));
ask->setToolTip(tr("Retenu après un redémarrage"));
auto *log = new QListWidget(content);
log->setWordWrap(true);
dock_layout->addWidget(ask);