diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-12-03 18:36:28 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-12-03 18:36:28 +0100 |
commit | 95e6f37d3942d4ab681e2f2484f17bbf8489c332 (patch) | |
tree | 98cc9231f0d1f2c5c935108aa075c7f0a0b65e7a /api/logic/minecraft/ComponentList.h | |
parent | e0bea1e46a8086b098248ec506b71e5f4512c70f (diff) | |
download | MultiMC-95e6f37d3942d4ab681e2f2484f17bbf8489c332.tar MultiMC-95e6f37d3942d4ab681e2f2484f17bbf8489c332.tar.gz MultiMC-95e6f37d3942d4ab681e2f2484f17bbf8489c332.tar.lz MultiMC-95e6f37d3942d4ab681e2f2484f17bbf8489c332.tar.xz MultiMC-95e6f37d3942d4ab681e2f2484f17bbf8489c332.zip |
NOISSUE force saving of any outstanding instance component state on exit
Diffstat (limited to 'api/logic/minecraft/ComponentList.h')
-rw-r--r-- | api/logic/minecraft/ComponentList.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/api/logic/minecraft/ComponentList.h b/api/logic/minecraft/ComponentList.h index 9cce111b..8e89d640 100644 --- a/api/logic/minecraft/ComponentList.h +++ b/api/logic/minecraft/ComponentList.h @@ -104,6 +104,10 @@ public: bool setComponentVersion(const QString &uid, const QString &version, bool important = false); QString patchFilePathForUid(const QString &uid) const; + + /// if there is a save scheduled, do it now. + void saveNow(); + public: /// get the profile component by id ComponentPtr getComponent(const QString &id); @@ -127,7 +131,7 @@ private: QString patchesPattern() const; private slots: - void save(); + void save_internal(); void updateSucceeded(); void updateFailed(const QString & error); void componentDataChanged(); |