show confirm dialog directly when updating mods

This commit is contained in:
matcool 2024-06-16 17:20:36 -03:00
parent 100dbdc511
commit 8f1a9cf6a3
2 changed files with 1 additions and 2 deletions

View file

@ -361,9 +361,7 @@ Result<ServerModVersion> ServerModVersion::parse(matjson::Value const& raw) {
} }
Result<ServerModReplacement> ServerModReplacement::parse(matjson::Value const& raw) { Result<ServerModReplacement> ServerModReplacement::parse(matjson::Value const& raw) {
log::info("entered replacement parse");
auto json = raw; auto json = raw;
log::info("{}", json);
JsonChecker checker(json); JsonChecker checker(json);
auto root = checker.root("ServerModReplacement").obj(); auto root = checker.root("ServerModReplacement").obj();
auto res = ServerModReplacement(); auto res = ServerModReplacement();

View file

@ -206,6 +206,7 @@ void ModsStatusNode::updateState() {
m_viewBtn->setVisible(true); m_viewBtn->setVisible(true);
m_viewBtn->setTarget(this, menu_selector(ModsStatusNode::onConfirm)); m_viewBtn->setTarget(this, menu_selector(ModsStatusNode::onConfirm));
askConfirmModInstalls();
} break; } break;
case DownloadState::SomeFetching: { case DownloadState::SomeFetching: {