Skip to content

Commit 8c53594

Browse files
committed
Fix Library disk details are not updating properly
1 parent 45f444b commit 8c53594

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Binaries/Steam Library Manager.exe

512 Bytes
Binary file not shown.

Source/Steam Library Manager/Definitions/Library.cs

+5
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ private List<FrameworkElement> GenerateCMenuItems()
9595

9696
public void UpdateDiskDetails()
9797
{
98+
Functions.FileSystem.GetDiskFreeSpaceEx(_fullPath, out var freeSpace, out var totalSpace, out var totalFreeSpace);
99+
100+
FreeSpace = (long)freeSpace;
101+
TotalSize = (long)totalSpace;
102+
98103
OnPropertyChanged("DirectoryInfo");
99104
OnPropertyChanged("FreeSpace");
100105
OnPropertyChanged("PrettyFreeSpace");

0 commit comments

Comments
 (0)