diff options
author | ADudeCalledLeo <7997354+Leo40Git@users.noreply.github.com> | 2022-11-12 20:43:58 +0200 |
---|---|---|
committer | ADudeCalledLeo <7997354+Leo40Git@users.noreply.github.com> | 2022-11-12 20:43:58 +0200 |
commit | 45ce72593ac29e54311219e71d47b044eda14b14 (patch) | |
tree | 7db13862011b95cfe5eea9ede49d49bec1ad9f23 | |
parent | b813c867b505f0c1ec8125fde9916d6252cd4485 (diff) | |
download | PrismLauncher-45ce72593ac29e54311219e71d47b044eda14b14.tar.gz PrismLauncher-45ce72593ac29e54311219e71d47b044eda14b14.tar.bz2 PrismLauncher-45ce72593ac29e54311219e71d47b044eda14b14.zip |
Windows: remove icon if shortcut creation fails
Signed-off-by: ADudeCalledLeo <7997354+Leo40Git@users.noreply.github.com>
-rw-r--r-- | launcher/ui/MainWindow.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/launcher/ui/MainWindow.cpp b/launcher/ui/MainWindow.cpp index 8e8a7c56..3f99ac99 100644 --- a/launcher/ui/MainWindow.cpp +++ b/launcher/ui/MainWindow.cpp @@ -2158,6 +2158,7 @@ void MainWindow::on_actionCreateInstanceShortcut_triggered() } else { + iconFile.remove(); QMessageBox::critical(this, tr("Create instance shortcut"), tr("Failed to create instance shortcut!")); } #else |