Update launcher/ui/MainWindow.cpp

Co-authored-by: TheKodeToad <TheKodeToad@proton.me>
Signed-off-by: Alexandru Ionut Tripon <alexandru.tripon97@gmail.com>
This commit is contained in:
Alexandru Ionut Tripon 2023-07-26 23:44:35 +03:00 committed by GitHub
parent e6b4fc9182
commit 31b62203a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1344,7 +1344,7 @@ void MainWindow::on_actionExportInstanceFlamePack_triggered()
if (instance) {
if (auto cmp = instance->getPackProfile()->getComponent("net.minecraft");
cmp && cmp->getVersionFile() && cmp->getVersionFile()->type == "snapshot") {
QMessageBox msgBox;
QMessageBox msgBox(this);
msgBox.setText("Snapshots are currently not supported by CurseForge modpacks.");
msgBox.exec();
return;