MCPcopy Create free account
hub / github.com/78/tenbox / UpdateCacheSizeLabel

Function UpdateCacheSizeLabel

src/manager/ui/settings_dialog.cpp:86–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86static void UpdateCacheSizeLabel(HWND dlg, ManagerService* mgr) {
87 auto stats = ComputeCacheStats(EffectiveImagesDir(mgr));
88 auto size_str = FormatSize(stats.total_bytes);
89 auto label = i18n::fmt(i18n::S::kSettingsCacheSize, size_str.c_str(), stats.image_count);
90 SetDlgItemTextW(dlg, IDC_CACHE_SIZE_LABEL, i18n::to_wide(label).c_str());
91}
92
93static void UpdateEditDisplays(HWND dlg, ManagerService* mgr) {
94 SetDlgItemTextW(dlg, IDC_VM_DIR_EDIT,

Callers 1

SettingsDlgProcFunction · 0.85

Calls 5

ComputeCacheStatsFunction · 0.85
EffectiveImagesDirFunction · 0.85
fmtFunction · 0.85
to_wideFunction · 0.85
FormatSizeFunction · 0.70

Tested by

no test coverage detected