feat(macOS): click dock icon to show window when it's hidden

This commit is contained in:
2025-07-22 00:08:06 +08:00
parent 505ab9e2a6
commit 347681e604
2 changed files with 14 additions and 1 deletions

View File

@ -188,6 +188,7 @@ void MainWindow::showUrls(const QList<QUrl> &urls)
m_pm->loadPlaylist(urls);
} else {
m_graphicsView->showText(tr("File url list is empty"));
m_pm->setPlaylist(urls);
return;
}
@ -312,7 +313,7 @@ QStringList MainWindow::supportedImageFormats()
void MainWindow::showEvent(QShowEvent *event)
{
updateWidgetsPosition();
return FramelessWindow::showEvent(event);
}