fix(macOS): should adjust window size when set as default viewer
This commit is contained in:
parent
07d0b0270e
commit
57354fc135
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user