Browse Source

Fix size check

pull/14/head
JT 1 year ago
parent
commit
e135b1857f
  1. 2
      StabilityMatrix/ViewModels/DataDirectoryMigrationViewModel.cs

2
StabilityMatrix/ViewModels/DataDirectoryMigrationViewModel.cs

@ -88,7 +88,7 @@ public partial class DataDirectoryMigrationViewModel : ObservableObject
var size = await oldDir.GetSizeAsync(includeSymbolicLinks: false);
// If there's not enough space in the new DataDirectory, show warning
if (size < new DriveInfo(settingsManager.LibraryDir).AvailableFreeSpace)
if (size > new DriveInfo(settingsManager.LibraryDir).AvailableFreeSpace)
{
HasFreeSpaceError = true;
}

Loading…
Cancel
Save