aboutsummaryrefslogtreecommitdiff
path: root/launcher/InstanceCopyTask.cpp
diff options
context:
space:
mode:
authorRachel Powers <508861+Ryex@users.noreply.github.com>2023-02-15 22:01:27 -0700
committerRachel Powers <508861+Ryex@users.noreply.github.com>2023-03-20 14:56:32 -0700
commit1ca2c59f2ed7739b4b7d50c7212e292a4432da93 (patch)
treecaf24466c26cd86ce0f1f0d31cb02c7302fe44a2 /launcher/InstanceCopyTask.cpp
parent3ec92acfe7a843a34018fc142439888c4ca5dba0 (diff)
downloadPrismLauncher-1ca2c59f2ed7739b4b7d50c7212e292a4432da93.tar.gz
PrismLauncher-1ca2c59f2ed7739b4b7d50c7212e292a4432da93.tar.bz2
PrismLauncher-1ca2c59f2ed7739b4b7d50c7212e292a4432da93.zip
feat: track instance copies that use links
confirm deleations when other instances link to it Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
Diffstat (limited to 'launcher/InstanceCopyTask.cpp')
-rw-r--r--launcher/InstanceCopyTask.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/launcher/InstanceCopyTask.cpp b/launcher/InstanceCopyTask.cpp
index 40babd0f..e0a4de0b 100644
--- a/launcher/InstanceCopyTask.cpp
+++ b/launcher/InstanceCopyTask.cpp
@@ -137,6 +137,8 @@ void InstanceCopyTask::copyFinished()
if(!m_keepPlaytime) {
inst->resetTimePlayed();
}
+ if (m_useLinks)
+ inst->addLinkedInstanceId(m_origInstance->id());
emitSucceeded();
}