Skip to content

Commit

Permalink
fix(macOS): should adjust window size when set as default viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
BLumia committed Dec 22, 2024
1 parent 07d0b02 commit 57354fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 57354fc

Please sign in to comment.