@@ -91,16 +91,16 @@ private static Task<IEnumerable<ICloudProvider>> DetectGenericCloudDrive()
9191 "ProtonDrive" => CloudProviders . ProtonDrive ,
9292 "kDrive" => CloudProviders . kDrive ,
9393 "Lucid" => CloudProviders . LucidLink ,
94- "SyncCom" => CloudProviders . SyncDrive ,
95- "MagentaCLOUD" => CloudProviders . MagentaCloud ,
9694 _ => null ,
9795 } ;
9896
9997 if ( cloudProvider is null )
10098 continue ;
10199
102100 var nextCloudValue = ( string ? ) namespaceSubKey ? . GetValue ( string . Empty ) ;
103- var clsidDefaultValue = ( string ? ) clsidSubKey ? . GetValue ( string . Empty ) ;
101+ var ownCloudValue = ( string ? ) clsidSubKey ? . GetValue ( string . Empty ) ;
102+ var kDriveValue = ( string ? ) clsidSubKey ? . GetValue ( string . Empty ) ;
103+ var lucidLinkValue = ( string ? ) clsidSubKey ? . GetValue ( string . Empty ) ;
104104
105105 using var defaultIconKey = clsidSubKey ? . OpenSubKey ( @"DefaultIcon" ) ;
106106 var iconPath = ( string ? ) defaultIconKey ? . GetValue ( string . Empty ) ;
@@ -115,12 +115,10 @@ private static Task<IEnumerable<ICloudProvider>> DetectGenericCloudDrive()
115115 CloudProviders . AppleCloudDrive => $ "iCloud Drive",
116116 CloudProviders . AppleCloudPhotos => $ "iCloud Photos",
117117 CloudProviders . AdobeCreativeCloud => $ "Creative Cloud Files",
118- CloudProviders . ownCloud => ! string . IsNullOrEmpty ( clsidDefaultValue ) ? clsidDefaultValue : "ownCloud" ,
118+ CloudProviders . ownCloud => ! string . IsNullOrEmpty ( ownCloudValue ) ? ownCloudValue : "ownCloud" ,
119119 CloudProviders . ProtonDrive => $ "Proton Drive",
120- CloudProviders . kDrive => ! string . IsNullOrEmpty ( clsidDefaultValue ) ? clsidDefaultValue : "kDrive" ,
121- CloudProviders . LucidLink => ! string . IsNullOrEmpty ( clsidDefaultValue ) ? clsidDefaultValue : "lucidLink" ,
122- CloudProviders . SyncDrive => ! string . IsNullOrEmpty ( clsidDefaultValue ) ? clsidDefaultValue : "Sync" ,
123- CloudProviders . MagentaCloud => ! string . IsNullOrEmpty ( clsidDefaultValue ) ? clsidDefaultValue : "MagentaCLOUD" ,
120+ CloudProviders . kDrive => ! string . IsNullOrEmpty ( kDriveValue ) ? kDriveValue : "kDrive" ,
121+ CloudProviders . LucidLink => ! string . IsNullOrEmpty ( lucidLinkValue ) ? lucidLinkValue : "lucidLink" ,
124122 _ => null
125123 } ,
126124 SyncFolder = syncedFolder ,
@@ -351,8 +349,6 @@ private static string GetDriveType(string driveIdentifier, RegistryKey? namespac
351349 return "ownCloud" ;
352350 if ( driveIdentifier . StartsWith ( "ProtonDrive" ) )
353351 return "ProtonDrive" ;
354- if ( driveIdentifier . StartsWith ( "SyncCom" ) )
355- return "SyncCom" ;
356352
357353 // Nextcloud specific
358354 var appNameFromNamespace = ( string ? ) namespaceSubKey ? . GetValue ( "ApplicationName" ) ;
0 commit comments