diff options
| author | Osmium Sorcerer <os@sof.beauty> | 2026-03-22 17:48:47 +0000 |
|---|---|---|
| committer | Osmium Sorcerer <os@sof.beauty> | 2026-03-29 22:22:25 +0000 |
| commit | f7dc5daa20bf943fdd824ff2aa1b408f1bc239b9 (patch) | |
| tree | 1a7c6b69714bb3e24a4897f890f8ce2cadb0d859 | |
| parent | b6b4b0bf6c8fb57b27fab1f5d03161960fd521c0 (diff) | |
Reduce dialog button delay from 3 seconds to 1
| -rw-r--r-- | src/debug_functions.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/debug_functions.cpp b/src/debug_functions.cpp index 79be51b..3cc2e05 100644 --- a/src/debug_functions.cpp +++ b/src/debug_functions.cpp @@ -36,7 +36,7 @@ void call_notice(QString p_message) QTimer intervalTimer; intervalTimer.setInterval(1000); - int counter = 3; + int counter = 1; const auto updateCounter = [msgBox, &counter] { if (counter <= 0) { @@ -50,7 +50,7 @@ void call_notice(QString p_message) intervalTimer.start(); updateCounter(); - QTimer::singleShot(3000, msgBox, [msgBox, &intervalTimer] { + QTimer::singleShot(1000, msgBox, [msgBox, &intervalTimer] { msgBox->defaultButton()->setEnabled(true); msgBox->defaultButton()->setText(QDialogButtonBox::tr("OK")); intervalTimer.stop(); |
