增加fixed-id检查

This commit is contained in:
gb 2023-09-15 17:52:19 +08:00
parent afd68c7a7b
commit f756a7b180
2 changed files with 9 additions and 0 deletions

View File

@ -1053,10 +1053,14 @@ void CDlgOptJson::set_button_check(UINT id, bool check)
std::wstring CDlgOptJson::get_json_text(const wchar_t* tab)
{
known_file_util::IJsonW* root = known_file_util::create_jsonW(), * child = NULL;
std::wstring nofid(L"");
int nfidcnt = 0;
for (auto& v : opts_)
{
child = v.to_json();
if (v.fix_id <= 0)
nofid += L" " + std::to_wstring(++nfidcnt) + L"¡¢ " + v.title + L"\r\n";
if (child)
{
if(wcscmp(child->key(), L"global"))
@ -1064,6 +1068,11 @@ std::wstring CDlgOptJson::get_json_text(const wchar_t* tab)
child->release();
}
}
if (!nofid.empty())
{
nofid.insert(0, L" \u8BF7\u6CE8\u610F\uFF0C\u4EE5\u4E0B\u5C5E\u6027\u6CA1\u6709\u63D0\u4F9B\uFF26\uFF49\uFF58\uFF45\uFF44\uFF0D\uFF29\uFF24\u6570\u636E\uFF0C\u5C06\r\n\u65E0\u6CD5\u88AB\u6620\u5C04\u5230\uFF34\uFF37\uFF21\uFF29\uFF2E\u534F\u8BAE\u4E2D\uFF01\r\n\r\n");
MessageBox(nofid.c_str(), TEXT("Notice"), MB_OK | MB_ICONWARNING);
}
std::wstring cont(L"");

Binary file not shown.