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) {
|
if (event->type() == QEvent::FileOpen) {
|
||||||
QFileOpenEvent *fileOpenEvent = static_cast<QFileOpenEvent *>(event);
|
QFileOpenEvent *fileOpenEvent = static_cast<QFileOpenEvent *>(event);
|
||||||
showUrls({fileOpenEvent->url()});
|
showUrls({fileOpenEvent->url()});
|
||||||
|
initWindowSize();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user