generalDialog: Rename "syncTimer" to "searchTimer"

This commit is contained in:
Nicolas Mailloux 2022-01-12 11:30:34 -05:00
parent 48a4a9e3e7
commit 69cc8c1b5f
2 changed files with 7 additions and 7 deletions

View file

@ -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 {
;

View file

@ -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;