fix: show empty url list doesn't reset window title

This commit is contained in:
2026-07-02 14:41:56 +08:00
committed by yyc12345
parent 265e894b3f
commit d2bd521ad0
+1
View File
@@ -291,6 +291,7 @@ void MainWindow::galleryCurrent(bool showLoadImageHintWhenEmpty, bool reloadImag
setWindowTitle(m_pm->urlByIndex(index).fileName());
} else if (showLoadImageHintWhenEmpty && m_pm->totalCount() <= 0) {
m_graphicsView->showText(QCoreApplication::translate("GraphicsScene", "Drag image here"));
setWindowTitle(QString());
}
updateGalleryButtonsVisibility();