summaryrefslogtreecommitdiffstats
path: root/api/logic
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2019-07-11 01:01:47 +0200
committerPetr Mrázek <peterix@gmail.com>2019-07-11 01:01:47 +0200
commitb9d429355255d10541fd14799c419a1b5aeeb128 (patch)
treea6842c81878ae32abf42c0bca6f635acbefac72c /api/logic
parent5110b58def7e3e3118e6624959d6e5d561002c74 (diff)
downloadMultiMC-b9d429355255d10541fd14799c419a1b5aeeb128.tar
MultiMC-b9d429355255d10541fd14799c419a1b5aeeb128.tar.gz
MultiMC-b9d429355255d10541fd14799c419a1b5aeeb128.tar.lz
MultiMC-b9d429355255d10541fd14799c419a1b5aeeb128.tar.xz
MultiMC-b9d429355255d10541fd14799c419a1b5aeeb128.zip
NOISSUE update component buttons some more when the versions change
Diffstat (limited to 'api/logic')
-rw-r--r--api/logic/minecraft/ComponentList.cpp3
-rw-r--r--api/logic/minecraft/ComponentList.h3
-rw-r--r--api/logic/minecraft/MinecraftInstance.h3
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();