Reload version after removing custom.json

This commit is contained in:
Jan Dalheimer 2014-02-03 20:42:04 +01:00
parent cdd35910c3
commit ac2f64f337

View File

@ -138,6 +138,7 @@ void OneSixModEditDialog::on_forgeBtn_clicked()
return; return;
} }
QDir(m_inst->instanceRoot()).remove("custom.json"); QDir(m_inst->instanceRoot()).remove("custom.json");
m_inst->reloadVersion(this);
} }
VersionSelectDialog vselect(MMC->forgelist().get(), tr("Select Forge version"), this); VersionSelectDialog vselect(MMC->forgelist().get(), tr("Select Forge version"), this);
vselect.setFilter(1, m_inst->currentVersionId()); vselect.setFilter(1, m_inst->currentVersionId());
@ -194,6 +195,7 @@ void OneSixModEditDialog::on_liteloaderBtn_clicked()
return; return;
} }
QDir(m_inst->instanceRoot()).remove("custom.json"); QDir(m_inst->instanceRoot()).remove("custom.json");
m_inst->reloadVersion(this);
} }
LiteLoaderInstaller liteloader; LiteLoaderInstaller liteloader;
if (!liteloader.canApply(m_inst)) if (!liteloader.canApply(m_inst))