mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-27 16:17:21 -08:00
generalDialog: Rename "syncTimer" to "searchTimer"
This commit is contained in:
parent
48a4a9e3e7
commit
69cc8c1b5f
2 changed files with 7 additions and 7 deletions
|
@ -378,12 +378,12 @@ void generalDialog::on_okBtn_clicked()
|
||||||
syncGutenbergCatalog();
|
syncGutenbergCatalog();
|
||||||
}
|
}
|
||||||
|
|
||||||
QTimer * syncTimer = new QTimer(this);
|
QTimer * searchTimer = new QTimer(this);
|
||||||
syncTimer->setInterval(100);
|
searchTimer->setInterval(100);
|
||||||
connect(syncTimer, &QTimer::timeout, [&]() {
|
connect(searchTimer, &QTimer::timeout, [&]() {
|
||||||
if(noGutenbergSyncToDo == true or (gutenbergSyncDone == true && gutenbergSyncStatus == true)) {
|
if(noGutenbergSyncToDo == true or (gutenbergSyncDone == true && gutenbergSyncStatus == true)) {
|
||||||
if(syncTimerDone == false) {
|
if(searchTimerDone == false) {
|
||||||
syncTimerDone = true;
|
searchTimerDone = true;
|
||||||
string_writeconfig("/inkbox/gutenberg_search_request", global::keyboard::keyboardText.toStdString());
|
string_writeconfig("/inkbox/gutenberg_search_request", global::keyboard::keyboardText.toStdString());
|
||||||
string_writeconfig("/opt/ibxd", "gutenberg_search\n");
|
string_writeconfig("/opt/ibxd", "gutenberg_search\n");
|
||||||
global::toast::modalToast = true;
|
global::toast::modalToast = true;
|
||||||
|
@ -393,7 +393,7 @@ void generalDialog::on_okBtn_clicked()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
syncTimer->start();
|
searchTimer->start();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
;
|
;
|
||||||
|
|
|
@ -40,7 +40,7 @@ public:
|
||||||
bool gutenbergSyncDone = false;
|
bool gutenbergSyncDone = false;
|
||||||
bool gutenbergSyncStatus = false;
|
bool gutenbergSyncStatus = false;
|
||||||
bool noGutenbergSyncToDo = false;
|
bool noGutenbergSyncToDo = false;
|
||||||
bool syncTimerDone = false;
|
bool searchTimerDone = false;
|
||||||
QString vncServerAddress;
|
QString vncServerAddress;
|
||||||
QString vncServerPassword;
|
QString vncServerPassword;
|
||||||
QString vncServerPort;
|
QString vncServerPort;
|
||||||
|
|
Loading…
Reference in a new issue