gui: Only enable 'Previews' tab if previews can be generated

Bu işleme şunda yer alıyor:
Albert S. 2023-03-26 15:53:40 +02:00
ebeveyn 32c2653b0f
işleme a7c4ad5e7c

Dosyayı Görüntüle

@ -877,6 +877,8 @@ void MainWindow::handleSearchResults(const QVector<SearchResult> &results)
makePreviews(1); makePreviews(1);
} }
ui->tabWidget->setTabEnabled(1, previewDirty);
QString statusText = "Results: " + QString::number(results.size()) + " files"; QString statusText = "Results: " + QString::number(results.size()) + " files";
statusText += ", previewable: " + QString::number(this->previewCoordinator.previewableCount()); statusText += ", previewable: " + QString::number(this->previewCoordinator.previewableCount());
if(hasDeleted) if(hasDeleted)