1
0

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

This commit is contained in:
2026-06-30 21:08:35 +08:00
committed by yyc12345
parent 265e894b3f
commit d2bd521ad0

View File

@@ -291,6 +291,7 @@ void MainWindow::galleryCurrent(bool showLoadImageHintWhenEmpty, bool reloadImag
setWindowTitle(m_pm->urlByIndex(index).fileName()); setWindowTitle(m_pm->urlByIndex(index).fileName());
} else if (showLoadImageHintWhenEmpty && m_pm->totalCount() <= 0) { } else if (showLoadImageHintWhenEmpty && m_pm->totalCount() <= 0) {
m_graphicsView->showText(QCoreApplication::translate("GraphicsScene", "Drag image here")); m_graphicsView->showText(QCoreApplication::translate("GraphicsScene", "Drag image here"));
setWindowTitle(QString());
} }
updateGalleryButtonsVisibility(); updateGalleryButtonsVisibility();