diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2023-08-02 19:27:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-02 19:27:48 +0200 |
commit | fa2b784f7eb817e97d0af45fe78d205932ada193 (patch) | |
tree | f263bdc3fd2f945e6ecc75f9b59b55d009082cca /launcher/ui/MainWindow.cpp | |
parent | b1aa9e584624a0732dd55fc6c459524a8abfe6ba (diff) | |
parent | 01e17806f67534140a6db6cf90191f4db4dd30ac (diff) | |
download | PrismLauncher-fa2b784f7eb817e97d0af45fe78d205932ada193.tar.gz PrismLauncher-fa2b784f7eb817e97d0af45fe78d205932ada193.tar.bz2 PrismLauncher-fa2b784f7eb817e97d0af45fe78d205932ada193.zip |
Merge branch 'develop' into sparkle-disable
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Diffstat (limited to 'launcher/ui/MainWindow.cpp')
-rw-r--r-- | launcher/ui/MainWindow.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/launcher/ui/MainWindow.cpp b/launcher/ui/MainWindow.cpp index da572fc3..e342e833 100644 --- a/launcher/ui/MainWindow.cpp +++ b/launcher/ui/MainWindow.cpp @@ -1342,16 +1342,10 @@ void MainWindow::on_actionExportInstanceFlamePack_triggered() if (m_selectedInstance) { auto instance = dynamic_cast<MinecraftInstance*>(m_selectedInstance.get()); if (instance) { - QString errorMsg; - if (instance->getPackProfile()->getComponent("org.quiltmc.quilt-loader")) { - errorMsg = tr("Quilt is currently not supported by CurseForge modpacks."); - } else if (auto cmp = instance->getPackProfile()->getComponent("net.minecraft"); - cmp && cmp->getVersionFile() && cmp->getVersionFile()->type == "snapshot") { - errorMsg = tr("Snapshots are currently not supported by CurseForge modpacks."); - } - if (!errorMsg.isEmpty()) { - QMessageBox msgBox; - msgBox.setText(errorMsg); + if (auto cmp = instance->getPackProfile()->getComponent("net.minecraft"); + cmp && cmp->getVersionFile() && cmp->getVersionFile()->type == "snapshot") { + QMessageBox msgBox(this); + msgBox.setText("Snapshots are currently not supported by CurseForge modpacks."); msgBox.exec(); return; } |