From c5dcaf1898f18bcc2bd0505849a67457c2e7f789 Mon Sep 17 00:00:00 2001 From: Marco Gavelli Date: Mon, 26 Dec 2022 18:53:57 +0100 Subject: [PATCH 1/2] Add support for Creative Cloud --- src/Files.App/Helpers/CloudDrivesDetector.cs | 2 ++ src/Files.Shared/Cloud/CloudProviders.cs | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Files.App/Helpers/CloudDrivesDetector.cs b/src/Files.App/Helpers/CloudDrivesDetector.cs index dc31bf82379d..274663c50ea3 100644 --- a/src/Files.App/Helpers/CloudDrivesDetector.cs +++ b/src/Files.App/Helpers/CloudDrivesDetector.cs @@ -100,6 +100,7 @@ private static Task> DetectGenericCloudDrive() "Jottacloud" => CloudProviders.Jottacloud, "iCloudDrive" => CloudProviders.AppleCloudDrive, "iCloudPhotos" => CloudProviders.AppleCloudPhotos, + "Creative Cloud Files" => CloudProviders.AdobeCreativeCloud, _ => null, }; if (driveID is null) @@ -118,6 +119,7 @@ private static Task> DetectGenericCloudDrive() CloudProviders.Jottacloud => $"Jottacloud", CloudProviders.AppleCloudDrive => $"iCloud Drive", CloudProviders.AppleCloudPhotos => $"iCloud Photos", + CloudProviders.AdobeCreativeCloud => $"Creative Cloud Files", _ => null }, SyncFolder = syncedFolder, diff --git a/src/Files.Shared/Cloud/CloudProviders.cs b/src/Files.Shared/Cloud/CloudProviders.cs index 9be337148633..31fed3c8fcd3 100644 --- a/src/Files.Shared/Cloud/CloudProviders.cs +++ b/src/Files.Shared/Cloud/CloudProviders.cs @@ -15,6 +15,7 @@ public enum CloudProviders Box, Jottacloud, SynologyDrive, - pCloud + pCloud, + AdobeCreativeCloud } } \ No newline at end of file From 8384454ed616d8140a2036ff2e9bb64989ad5ce7 Mon Sep 17 00:00:00 2001 From: Marco Gavelli Date: Mon, 26 Dec 2022 18:55:27 +0100 Subject: [PATCH 2/2] Updated comment --- src/Files.App/Helpers/CloudDrivesDetector.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Files.App/Helpers/CloudDrivesDetector.cs b/src/Files.App/Helpers/CloudDrivesDetector.cs index 274663c50ea3..4b865a91460d 100644 --- a/src/Files.App/Helpers/CloudDrivesDetector.cs +++ b/src/Files.App/Helpers/CloudDrivesDetector.cs @@ -91,7 +91,7 @@ private static Task> DetectGenericCloudDrive() continue; } - // Also works for OneDrive, Box, iCloudDrive, Dropbox + // Also works for OneDrive, Box, Dropbox CloudProviders? driveID = driveType switch { "MEGA" => CloudProviders.Mega,