Added some warnings

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97
2023-06-24 01:05:49 +03:00
parent 31aaa6d1da
commit cf94adb363
10 changed files with 158 additions and 37 deletions

View File

@ -1420,8 +1420,17 @@ void MainWindow::on_actionExportInstanceMrPack_triggered()
void MainWindow::on_actionExportInstanceFlamePack_triggered()
{
if (m_selectedInstance) {
ExportMrPackDialog dlg(m_selectedInstance, this, ModPlatform::ResourceProvider::FLAME);
dlg.exec();
auto instance = dynamic_cast<MinecraftInstance*>(m_selectedInstance.get());
if (instance) {
if (instance->getPackProfile()->getComponent("org.quiltmc.quilt-loader")) {
QMessageBox msgBox;
msgBox.setText(tr("Quilt is not yet supported by curseforge."));
msgBox.exec();
return;
}
ExportMrPackDialog dlg(m_selectedInstance, this, ModPlatform::ResourceProvider::FLAME);
dlg.exec();
}
}
}