Skip to content

Commit 1b175c9

Browse files
Hide Cleanup and Format on Properties for Cloud Drives
1 parent 9c85ff3 commit 1b175c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Files.App/ViewModels/Properties/BasePropertiesPage.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ protected override void OnNavigatedTo(NavigationEventArgs e)
3939
var props = new DriveProperties(ViewModel, drive, AppInstance);
4040
BaseProperties = props;
4141

42-
ViewModel.CleanupVisibility = props.Drive.Type != DriveType.Network;
43-
ViewModel.FormatVisibility = !(props.Drive.Type == DriveType.Network || string.Equals(props.Drive.Path, $@"{Constants.UserEnvironmentPaths.SystemDrivePath}\", StringComparison.OrdinalIgnoreCase));
42+
ViewModel.CleanupVisibility = props.Drive.Type != DriveType.Network && props.Drive.Type != DriveType.CloudDrive;
43+
ViewModel.FormatVisibility = !(props.Drive.Type == DriveType.Network || props.Drive.Type == DriveType.CloudDrive || string.Equals(props.Drive.Path, $@"{Constants.UserEnvironmentPaths.SystemDrivePath}\", StringComparison.OrdinalIgnoreCase));
4444
ViewModel.CleanupDriveCommand = new AsyncRelayCommand(() => StorageSenseHelper.OpenStorageSenseAsync(props.Drive.Path));
4545
ViewModel.FormatDriveCommand = new RelayCommand(async () =>
4646
{

0 commit comments

Comments
 (0)