summaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-12-29 04:17:52 +0100
committerPetr Mrázek <peterix@gmail.com>2013-12-29 04:17:52 +0100
commit654f444f55de58f5cf0477e3b08b8f18e8d60831 (patch)
treecc1c3fb3647502a85ac6a4bcb7a9ba5a9b0c324e /gui
parentfbf1cc2848d0e985ba72b1fe9625bc88b5fe2208 (diff)
downloadMultiMC-654f444f55de58f5cf0477e3b08b8f18e8d60831.tar
MultiMC-654f444f55de58f5cf0477e3b08b8f18e8d60831.tar.gz
MultiMC-654f444f55de58f5cf0477e3b08b8f18e8d60831.tar.lz
MultiMC-654f444f55de58f5cf0477e3b08b8f18e8d60831.tar.xz
MultiMC-654f444f55de58f5cf0477e3b08b8f18e8d60831.zip
Fix various LiteLoader related bugs.
Diffstat (limited to 'gui')
-rw-r--r--gui/dialogs/OneSixModEditDialog.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/gui/dialogs/OneSixModEditDialog.cpp b/gui/dialogs/OneSixModEditDialog.cpp
index fb422941..d8b84d3e 100644
--- a/gui/dialogs/OneSixModEditDialog.cpp
+++ b/gui/dialogs/OneSixModEditDialog.cpp
@@ -72,8 +72,6 @@ OneSixModEditDialog::OneSixModEditDialog(OneSixInstance *inst, QWidget *parent)
auto smodel = ui->loaderModTreeView->selectionModel();
connect(smodel, SIGNAL(currentChanged(QModelIndex, QModelIndex)),
SLOT(loaderCurrent(QModelIndex, QModelIndex)));
-
- ui->liteloaderBtn->setEnabled(LiteLoaderInstaller(m_inst->intendedVersionId()).canApply());
}
// resource packs
{
@@ -98,6 +96,7 @@ void OneSixModEditDialog::updateVersionControls()
ui->customizeBtn->setEnabled(!customVersion);
ui->revertBtn->setEnabled(customVersion);
ui->forgeBtn->setEnabled(true);
+ ui->liteloaderBtn->setEnabled(LiteLoaderInstaller(m_inst->intendedVersionId()).canApply());
}
void OneSixModEditDialog::disableVersionControls()
@@ -105,6 +104,7 @@ void OneSixModEditDialog::disableVersionControls()
ui->customizeBtn->setEnabled(false);
ui->revertBtn->setEnabled(false);
ui->forgeBtn->setEnabled(false);
+ ui->liteloaderBtn->setEnabled(false);
}
void OneSixModEditDialog::on_customizeBtn_clicked()
@@ -218,9 +218,18 @@ void OneSixModEditDialog::on_liteloaderBtn_clicked()
"into this version of Minecraft"));
return;
}
+ if (!m_inst->versionIsCustom())
+ {
+ m_inst->customizeVersion();
+ m_version = m_inst->getFullVersion();
+ main_model->setSourceModel(m_version.get());
+ updateVersionControls();
+ }
if (!liteloader.apply(m_version))
{
- // failure notice
+ QMessageBox::critical(
+ this, tr("LiteLoader"),
+ tr("For reasons unknown, the LiteLoader installation failed. Check your MultiMC log files for details."));
}
}