aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorADudeCalledLeo <7997354+Leo40Git@users.noreply.github.com>2022-11-04 22:04:42 +0200
committerADudeCalledLeo <7997354+Leo40Git@users.noreply.github.com>2022-11-12 20:19:29 +0200
commit487e352642c4430f57643b53a8e9cd3d04edfeb8 (patch)
tree4f5936d602dbd35b5722f41d8d8fb74d4b01d8d9
parentcc5f82bfac162becf55dfcb015f55be3c833bc32 (diff)
downloadPrismLauncher-487e352642c4430f57643b53a8e9cd3d04edfeb8.tar.gz
PrismLauncher-487e352642c4430f57643b53a8e9cd3d04edfeb8.tar.bz2
PrismLauncher-487e352642c4430f57643b53a8e9cd3d04edfeb8.zip
Fix nested #if directive
Signed-off-by: ADudeCalledLeo <7997354+Leo40Git@users.noreply.github.com>
-rw-r--r--launcher/ui/MainWindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/launcher/ui/MainWindow.cpp b/launcher/ui/MainWindow.cpp
index a87da362..15fdd6f2 100644
--- a/launcher/ui/MainWindow.cpp
+++ b/launcher/ui/MainWindow.cpp
@@ -2103,7 +2103,8 @@ void MainWindow::on_actionCreateInstanceShortcut_triggered()
// macOSX
// TODO actually write this path
QMessageBox::critical(this, tr("Create instance shortcut"), tr("Not supported on macOSX yet!"));
-#else
+ return;
+#endif
auto icon = APPLICATION->icons()->icon(m_selectedInstance->iconKey());
QString iconPath;
@@ -2151,7 +2152,6 @@ void MainWindow::on_actionCreateInstanceShortcut_triggered()
}
QMessageBox::critical(this, tr("Create instance shortcut"), tr("Failed to create instance shortcut!"));
}
-#endif
}
}