From 69cc8c1b5ff857fd132c42e5d13c7f56d08c2d1b Mon Sep 17 00:00:00 2001 From: Nicolas Mailloux Date: Wed, 12 Jan 2022 11:30:34 -0500 Subject: [PATCH] generalDialog: Rename "syncTimer" to "searchTimer" --- generaldialog.cpp | 12 ++++++------ generaldialog.h | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/generaldialog.cpp b/generaldialog.cpp index 4c9eba0..e96dc53 100644 --- a/generaldialog.cpp +++ b/generaldialog.cpp @@ -378,12 +378,12 @@ void generalDialog::on_okBtn_clicked() syncGutenbergCatalog(); } - QTimer * syncTimer = new QTimer(this); - syncTimer->setInterval(100); - connect(syncTimer, &QTimer::timeout, [&]() { + QTimer * searchTimer = new QTimer(this); + searchTimer->setInterval(100); + connect(searchTimer, &QTimer::timeout, [&]() { if(noGutenbergSyncToDo == true or (gutenbergSyncDone == true && gutenbergSyncStatus == true)) { - if(syncTimerDone == false) { - syncTimerDone = true; + if(searchTimerDone == false) { + searchTimerDone = true; string_writeconfig("/inkbox/gutenberg_search_request", global::keyboard::keyboardText.toStdString()); string_writeconfig("/opt/ibxd", "gutenberg_search\n"); global::toast::modalToast = true; @@ -393,7 +393,7 @@ void generalDialog::on_okBtn_clicked() } } } ); - syncTimer->start(); + searchTimer->start(); } else { ; diff --git a/generaldialog.h b/generaldialog.h index 54ee008..56abf72 100644 --- a/generaldialog.h +++ b/generaldialog.h @@ -40,7 +40,7 @@ public: bool gutenbergSyncDone = false; bool gutenbergSyncStatus = false; bool noGutenbergSyncToDo = false; - bool syncTimerDone = false; + bool searchTimerDone = false; QString vncServerAddress; QString vncServerPassword; QString vncServerPort;