diff options
author | Trial97 <alexandru.tripon97@gmail.com> | 2023-06-27 19:15:20 +0300 |
---|---|---|
committer | Trial97 <alexandru.tripon97@gmail.com> | 2023-06-27 19:15:20 +0300 |
commit | 92847b977409f4f4b4daa1e34196596e40becc05 (patch) | |
tree | db5fba83362c4b934880e612e80020db4f84dd00 | |
parent | 6e5716f097d89b4b7b4c48ae18e37474ef23b3e8 (diff) | |
download | PrismLauncher-92847b977409f4f4b4daa1e34196596e40becc05.tar.gz PrismLauncher-92847b977409f4f4b4daa1e34196596e40becc05.tar.bz2 PrismLauncher-92847b977409f4f4b4daa1e34196596e40becc05.zip |
omit icon remove on macos
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
-rw-r--r-- | launcher/ui/MainWindow.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/launcher/ui/MainWindow.cpp b/launcher/ui/MainWindow.cpp index 7407483f..496738e3 100644 --- a/launcher/ui/MainWindow.cpp +++ b/launcher/ui/MainWindow.cpp @@ -1613,7 +1613,9 @@ void MainWindow::on_actionCreateInstanceShortcut_triggered() if (FS::createShortcut(desktopFilePath, appPath, args, m_selectedInstance->name(), iconPath)) { QMessageBox::information(this, tr("Create instance shortcut"), tr("Created a shortcut to this instance on your desktop!")); } else { +#if not defined(Q_OS_MACOS) iconFile.remove(); +#endif QMessageBox::critical(this, tr("Create instance shortcut"), tr("Failed to create instance shortcut!")); } } |