fix(macOS): should adjust window size when set as default viewer

This commit is contained in:
Gary Wang 2024-12-23 00:22:42 +08:00
parent 07d0b0270e
commit 57354fc135

View File

@ -668,6 +668,7 @@ bool MainWindow::eventFilter(QObject *obj, QEvent *event)
if (event->type() == QEvent::FileOpen) {
QFileOpenEvent *fileOpenEvent = static_cast<QFileOpenEvent *>(event);
showUrls({fileOpenEvent->url()});
initWindowSize();
return true;
}
return false;