diff options
author | Ryan Cao <70191398+ryanccn@users.noreply.github.com> | 2022-05-24 16:18:02 +0800 |
---|---|---|
committer | Ryan Cao <70191398+ryanccn@users.noreply.github.com> | 2022-05-24 16:18:02 +0800 |
commit | 9673dac22b0ff81a54847d5db5438c099a6df587 (patch) | |
tree | 5bd370d90159b6b9a6e3a09bfb6145d008c15460 | |
parent | 0426149580feaca188c7f34b268411ffeb8787b0 (diff) | |
download | PrismLauncher-9673dac22b0ff81a54847d5db5438c099a6df587.tar.gz PrismLauncher-9673dac22b0ff81a54847d5db5438c099a6df587.tar.bz2 PrismLauncher-9673dac22b0ff81a54847d5db5438c099a6df587.zip |
add more `#ifdef`s
-rw-r--r-- | launcher/Application.cpp | 2 | ||||
-rw-r--r-- | launcher/Application.h | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/launcher/Application.cpp b/launcher/Application.cpp index bcfdc460..ff0f2129 100644 --- a/launcher/Application.cpp +++ b/launcher/Application.cpp @@ -871,9 +871,11 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv) m_mcedit.reset(new MCEditTool(m_settings)); } +#ifdef Q_OS_MACOS connect(this, &Application::clickedOnDock, [this]() { this->showMainWindow(); }); +#endif connect(this, &Application::aboutToQuit, [this](){ if(m_instances) diff --git a/launcher/Application.h b/launcher/Application.h index d6a5473d..686137ec 100644 --- a/launcher/Application.h +++ b/launcher/Application.h @@ -182,7 +182,10 @@ signals: void updateAllowedChanged(bool status); void globalSettingsAboutToOpen(); void globalSettingsClosed(); + +#ifdef Q_OS_MACOS void clickedOnDock(); +#endif public slots: bool launch( |