aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/MainWindow.cpp
diff options
context:
space:
mode:
authorTrial97 <alexandru.tripon97@gmail.com>2023-06-27 19:15:20 +0300
committerTrial97 <alexandru.tripon97@gmail.com>2023-06-27 19:15:20 +0300
commit92847b977409f4f4b4daa1e34196596e40becc05 (patch)
treedb5fba83362c4b934880e612e80020db4f84dd00 /launcher/ui/MainWindow.cpp
parent6e5716f097d89b4b7b4c48ae18e37474ef23b3e8 (diff)
downloadPrismLauncher-92847b977409f4f4b4daa1e34196596e40becc05.tar.gz
PrismLauncher-92847b977409f4f4b4daa1e34196596e40becc05.tar.bz2
PrismLauncher-92847b977409f4f4b4daa1e34196596e40becc05.zip
omit icon remove on macos
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
Diffstat (limited to 'launcher/ui/MainWindow.cpp')
-rw-r--r--launcher/ui/MainWindow.cpp2
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!"));
}
}