mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-26 23:57:22 -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();
|
||||
}
|
||||
|
||||
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 {
|
||||
;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue