Skip to content
This repository was archived by the owner on Jan 8, 2022. It is now read-only.

Commit 3e78a7f

Browse files
committed
All disks in the system are shown, temporarily
1 parent 429a9f4 commit 3e78a7f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Source/Deployer.Raspberry.Gui/ViewModels/DeploymentViewModel.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ public DeploymentViewModel(IDeviceProvider deviceProvider,
4444
RefreshDisksCommandWrapper = new CommandWrapper<Unit, ICollection<Disk>>(this,
4545
ReactiveCommand.CreateFromTask(lowLevelApi.GetDisks), uiServices.DialogService);
4646
disks = RefreshDisksCommandWrapper.Command
47-
.Select(x => x
48-
.Where(y => !y.IsBoot && !y.IsSystem && !y.IsOffline)
49-
.Select(disk => new DiskViewModel(disk)))
47+
.Select(x => x.Select(disk => new DiskViewModel(disk)))
5048
.ToProperty(this, x => x.Disks);
5149

5250
this.WhenAnyValue(x => x.SelectedDisk).Where(x => x != null).Subscribe(x => deviceProvider.Device = new RaspberryPi(lowLevelApi, x.Disk));

Source/Deployer.Raspberry.Gui/ViewModels/DiskViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public DiskViewModel(Disk disk)
1515
public uint Number => disk.Number + 1;
1616
public string FriendlyName => disk.FriendlyName;
1717
public ByteSize Size => disk.Size;
18-
public bool IsUsualTarget => Size > ByteSize.FromGigaBytes(14) && Size < ByteSize.FromGigaBytes(255);
18+
public bool IsUsualTarget => Size > ByteSize.FromGigaBytes(14) && Size < ByteSize.FromGigaBytes(200);
1919
public Disk Disk => disk;
2020

2121
public override string ToString()

0 commit comments

Comments
 (0)