| 84 | } |
| 85 | |
| 86 | static 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 | |
| 93 | static void UpdateEditDisplays(HWND dlg, ManagerService* mgr) { |
| 94 | SetDlgItemTextW(dlg, IDC_VM_DIR_EDIT, |
no test coverage detected