Skip to content

Commit 5beae92

Browse files
Feature: Hide Cleanup and Format on Properties for Cloud Drives (#16978)
Signed-off-by: Yair <[email protected]> Co-authored-by: Yair <[email protected]>
1 parent decf3da commit 5beae92

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)