mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-01 02:46:59 +03:00
feat: register as zip/mrpack handler on macOS
Signed-off-by: Ryan Cao <70191398+ryanccn@users.noreply.github.com>
This commit is contained in:
parent
7a8c963722
commit
a406aeb3ea
2 changed files with 30 additions and 0 deletions
|
|
@ -943,6 +943,13 @@ bool Application::event(QEvent* event) {
|
|||
emit clickedOnDock();
|
||||
}
|
||||
m_prevAppState = ev->applicationState();
|
||||
return true;
|
||||
}
|
||||
|
||||
if (event->type() == QEvent::FileOpen) {
|
||||
auto ev = static_cast<QFileOpenEvent*>(event);
|
||||
m_mainWindow->droppedURLs({ ev->url() });
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
return QApplication::event(event);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue