aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorOsmium Sorcerer <os@sof.beauty>2026-03-22 17:48:47 +0000
committerOsmium Sorcerer <os@sof.beauty>2026-03-29 22:22:25 +0000
commitf7dc5daa20bf943fdd824ff2aa1b408f1bc239b9 (patch)
tree1a7c6b69714bb3e24a4897f890f8ce2cadb0d859 /src
parentb6b4b0bf6c8fb57b27fab1f5d03161960fd521c0 (diff)
Reduce dialog button delay from 3 seconds to 1
Diffstat (limited to 'src')
-rw-r--r--src/debug_functions.cpp4
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();