修复拉取列表未清空全局变量问题

修复更新后不更新列表信息问题
This commit is contained in:
JackLee_CN 2024-10-20 18:27:19 +08:00
parent fd35c2bf03
commit f3dc14698d
3 changed files with 3 additions and 1 deletions

View File

@ -257,7 +257,6 @@ bool xsteam_curl_steam_id_app_info(UidData &u_data)
}
if (u_data.name != "")
{
//_data.u_data.push_back(u_data);
return true;
}
return false;

View File

@ -92,6 +92,7 @@ bool xsteam_git::branch_or_tags_remote_array()
out << std::setw(4) << ref_name.substr(local_head_str.size()) << "\n";
}
}
_data.s_ex_data[src_name].clear();
_data.s_ex_data.insert(std::pair<std::string, std::vector<std::string>>(src_name, tags));
out.close();
free_git_ext();

View File

@ -491,6 +491,8 @@ void xsteam_ui::slots_table_append(UidData u_data)
break;
}
}
ip_uid_table->item_clear();
table_load_ui_data();
slots_msg_text(u_data.uid + "更新完毕!");
}
QFuture<void> future = QtConcurrent::run([=]()