gui: Disable search box as long as previews are being generated
Otherwise "spamming" queries can cause high load and many outstanding may arrive only to be discarded anyway for not being part of the recent query.
This commit is contained in:
parent
877224b6e1
commit
d8205a0da4
@ -215,6 +215,7 @@ void MainWindow::connectSignals()
|
|||||||
this->ui->previewProcessBar->setValue(this->ui->previewProcessBar->maximum());
|
this->ui->previewProcessBar->setValue(this->ui->previewProcessBar->maximum());
|
||||||
this->ui->spinPreviewPage->setEnabled(true);
|
this->ui->spinPreviewPage->setEnabled(true);
|
||||||
this->ui->comboPreviewFiles->setEnabled(true);
|
this->ui->comboPreviewFiles->setEnabled(true);
|
||||||
|
ui->txtSearch->setEnabled(true);
|
||||||
});
|
});
|
||||||
connect(&ipcPreviewClient, &IPCPreviewClient::error, this,
|
connect(&ipcPreviewClient, &IPCPreviewClient::error, this,
|
||||||
[this](QString msg)
|
[this](QString msg)
|
||||||
@ -955,6 +956,7 @@ void MainWindow::makePreviews(int page)
|
|||||||
++this->currentPreviewGeneration;
|
++this->currentPreviewGeneration;
|
||||||
this->ui->spinPreviewPage->setEnabled(false);
|
this->ui->spinPreviewPage->setEnabled(false);
|
||||||
this->ui->comboPreviewFiles->setEnabled(false);
|
this->ui->comboPreviewFiles->setEnabled(false);
|
||||||
|
this->ui->txtSearch->setEnabled(false);
|
||||||
emit startIpcPreviews(renderConfig, targets);
|
emit startIpcPreviews(renderConfig, targets);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user