From 57354fc135fd0e47524afc7c5f83e8fd15865659 Mon Sep 17 00:00:00 2001 From: Gary Wang Date: Mon, 23 Dec 2024 00:22:42 +0800 Subject: [PATCH] fix(macOS): should adjust window size when set as default viewer --- app/mainwindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/app/mainwindow.cpp b/app/mainwindow.cpp index 59c3f3e..f027acd 100644 --- a/app/mainwindow.cpp +++ b/app/mainwindow.cpp @@ -668,6 +668,7 @@ bool MainWindow::eventFilter(QObject *obj, QEvent *event) if (event->type() == QEvent::FileOpen) { QFileOpenEvent *fileOpenEvent = static_cast(event); showUrls({fileOpenEvent->url()}); + initWindowSize(); return true; } return false;