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

This commit is contained in:
2026-06-30 21:08:35 +08:00
parent 9662079b9d
commit 46cc2e0dbe

View File

@@ -292,6 +292,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();