aboutsummaryrefslogtreecommitdiff
path: root/launcher/InstanceCreationTask.cpp
diff options
context:
space:
mode:
authorflow <flowlnlnln@gmail.com>2022-07-31 20:29:12 -0300
committerflow <flowlnlnln@gmail.com>2022-09-20 18:36:09 -0300
commiteda6cf11ef53c11ed2691399ec1adbc83ca0a4d6 (patch)
treee6ccd43f4292f5e85b1f0bc637ca9ad96f61826a /launcher/InstanceCreationTask.cpp
parent68facd6b93d1a08a7c2417aa0d0ec614b0feecbe (diff)
downloadPrismLauncher-eda6cf11ef53c11ed2691399ec1adbc83ca0a4d6.tar.gz
PrismLauncher-eda6cf11ef53c11ed2691399ec1adbc83ca0a4d6.tar.bz2
PrismLauncher-eda6cf11ef53c11ed2691399ec1adbc83ca0a4d6.zip
feat(ui): improve info dialog before updating an instance
Adds a 'Cancel' option, and add a note about doing a backup before updating. Signed-off-by: flow <flowlnlnln@gmail.com>
Diffstat (limited to 'launcher/InstanceCreationTask.cpp')
-rw-r--r--launcher/InstanceCreationTask.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/launcher/InstanceCreationTask.cpp b/launcher/InstanceCreationTask.cpp
index d7663c2d..3908bb9a 100644
--- a/launcher/InstanceCreationTask.cpp
+++ b/launcher/InstanceCreationTask.cpp
@@ -11,6 +11,12 @@ void InstanceCreationTask::executeTask()
return;
}
+ // When the user aborted in the update stage.
+ if (m_abort) {
+ emitAborted();
+ return;
+ }
+
// If this is set, it means we're updating an instance. Since the previous step likely
// removed some old files, we'd better not let the user abort the next task, since it'd
// put the instance in an invalid state.