diff options
author | Petr Mrázek <peterix@gmail.com> | 2018-07-23 00:49:26 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2018-07-28 22:12:57 +0200 |
commit | 7b439c85c0bf3583ac8970e7ab9e8db3bd65c968 (patch) | |
tree | 0907bda540ed3df50ad15ff3265dc0c819146227 /api/logic/BaseInstance.cpp | |
parent | 12f2716f31e09d18d47ffdbb6c06dfb71c6ec8fb (diff) | |
download | MultiMC-7b439c85c0bf3583ac8970e7ab9e8db3bd65c968.tar MultiMC-7b439c85c0bf3583ac8970e7ab9e8db3bd65c968.tar.gz MultiMC-7b439c85c0bf3583ac8970e7ab9e8db3bd65c968.tar.lz MultiMC-7b439c85c0bf3583ac8970e7ab9e8db3bd65c968.tar.xz MultiMC-7b439c85c0bf3583ac8970e7ab9e8db3bd65c968.zip |
SCRATCH things and stuff, related to grou saving
Diffstat (limited to 'api/logic/BaseInstance.cpp')
-rw-r--r-- | api/logic/BaseInstance.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/api/logic/BaseInstance.cpp b/api/logic/BaseInstance.cpp index c81b70c6..f07b2bd0 100644 --- a/api/logic/BaseInstance.cpp +++ b/api/logic/BaseInstance.cpp @@ -99,16 +99,11 @@ void BaseInstance::iconUpdated(QString key) void BaseInstance::invalidate() { changeStatus(Status::Gone); + m_group = QString(); + emit groupChanged(); qDebug() << "Instance" << id() << "has been invalidated."; } -void BaseInstance::nuke() -{ - changeStatus(Status::Gone); - qDebug() << "Instance" << id() << "has been deleted by MultiMC."; - FS::deletePath(instanceRoot()); -} - void BaseInstance::changeStatus(BaseInstance::Status newStatus) { Status status = currentStatus(); |