diff options
Diffstat (limited to 'api/logic/minecraft')
-rw-r--r-- | api/logic/minecraft/ComponentList.cpp | 3 | ||||
-rw-r--r-- | api/logic/minecraft/ComponentList.h | 3 | ||||
-rw-r--r-- | api/logic/minecraft/MinecraftInstance.h | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/api/logic/minecraft/ComponentList.cpp b/api/logic/minecraft/ComponentList.cpp index e5c373a4..b2afdb17 100644 --- a/api/logic/minecraft/ComponentList.cpp +++ b/api/logic/minecraft/ComponentList.cpp @@ -635,6 +635,9 @@ void ComponentList::componentDataChanged() qWarning() << "ComponentList got dataChenged signal from a non-Component!"; return; } + if(objPtr->getID() == "net.minecraft") { + emit minecraftChanged(); + } // figure out which one is it... in a seriously dumb way. int index = 0; for (auto component: d->components) diff --git a/api/logic/minecraft/ComponentList.h b/api/logic/minecraft/ComponentList.h index 18beaf60..cb20c559 100644 --- a/api/logic/minecraft/ComponentList.h +++ b/api/logic/minecraft/ComponentList.h @@ -104,6 +104,9 @@ public: /// if there is a save scheduled, do it now. void saveNow(); +signals: + void minecraftChanged(); + public: /// get the profile component by id Component * getComponent(const QString &id); diff --git a/api/logic/minecraft/MinecraftInstance.h b/api/logic/minecraft/MinecraftInstance.h index fac309c2..501697f7 100644 --- a/api/logic/minecraft/MinecraftInstance.h +++ b/api/logic/minecraft/MinecraftInstance.h @@ -113,9 +113,6 @@ public: virtual JavaVersion getJavaVersion() const; -signals: - void versionReloaded(); - protected: QMap<QString, QString> createCensorFilterFromSession(AuthSessionPtr session); QStringList validLaunchMethods(); |