Reload version after removing custom.json
This commit is contained in:
parent
cdd35910c3
commit
ac2f64f337
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user