Fix nested #if directive

Signed-off-by: ADudeCalledLeo <7997354+Leo40Git@users.noreply.github.com>
This commit is contained in:
ADudeCalledLeo 2022-11-04 22:04:42 +02:00
parent cc5f82bfac
commit 487e352642
No known key found for this signature in database
GPG Key ID: 2E08DA5D6AF36F3B

View File

@ -2103,7 +2103,8 @@ void MainWindow::on_actionCreateInstanceShortcut_triggered()
// macOSX // macOSX
// TODO actually write this path // TODO actually write this path
QMessageBox::critical(this, tr("Create instance shortcut"), tr("Not supported on macOSX yet!")); QMessageBox::critical(this, tr("Create instance shortcut"), tr("Not supported on macOSX yet!"));
#else return;
#endif
auto icon = APPLICATION->icons()->icon(m_selectedInstance->iconKey()); auto icon = APPLICATION->icons()->icon(m_selectedInstance->iconKey());
QString iconPath; QString iconPath;
@ -2151,7 +2152,6 @@ void MainWindow::on_actionCreateInstanceShortcut_triggered()
} }
QMessageBox::critical(this, tr("Create instance shortcut"), tr("Failed to create instance shortcut!")); QMessageBox::critical(this, tr("Create instance shortcut"), tr("Failed to create instance shortcut!"));
} }
#endif
} }
} }