Add diagnostic status message when History clicked, show entry count
This commit is contained in:
@@ -1071,6 +1071,9 @@ void OnClick(HWND hWnd, WK kind) {
|
|||||||
ShowSelectPopup(hWnd, ID_SEL_AUDIO, g_audioItems, g_audioSel, g_w[(int)WK::SelAudio].r);
|
ShowSelectPopup(hWnd, ID_SEL_AUDIO, g_audioItems, g_audioSel, g_w[(int)WK::SelAudio].r);
|
||||||
break;
|
break;
|
||||||
case WK::History: {
|
case WK::History: {
|
||||||
|
wchar_t dbg[64];
|
||||||
|
swprintf_s(dbg, L"History: %d entries", (int)g_history.size());
|
||||||
|
SetStatus(hWnd, dbg);
|
||||||
std::vector<std::wstring> items;
|
std::vector<std::wstring> items;
|
||||||
for (auto& e : g_history) items.push_back(e.label);
|
for (auto& e : g_history) items.push_back(e.label);
|
||||||
if (items.empty()) items.push_back(L"No history yet");
|
if (items.empty()) items.push_back(L"No history yet");
|
||||||
|
|||||||
Reference in New Issue
Block a user