mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-13 08:14:13 +02:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user