File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
src/Files.Launcher/Helpers Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,13 @@ private static Task<List<CloudProvider>> DetectGenericCloudDrive()
58
58
continue ;
59
59
}
60
60
61
+ //Nextcloud specific
62
+ var appName = ( string ) namespaceKey ? . GetValue ( "ApplicationName" ) ;
63
+ if ( ! string . IsNullOrEmpty ( appName ) && appName == "Nextcloud" )
64
+ {
65
+ driveType = appName ;
66
+ }
67
+
61
68
using var bagKey = subKey . OpenSubKey ( @"Instance\InitPropertyBag" ) ;
62
69
var syncedFolder = ( string ) bagKey ? . GetValue ( "TargetFolderPath" ) ;
63
70
if ( syncedFolder == null )
@@ -86,7 +93,7 @@ private static Task<List<CloudProvider>> DetectGenericCloudDrive()
86
93
{
87
94
CloudProviders . Mega => $ "MEGA ({ Path . GetFileName ( syncedFolder . TrimEnd ( '\\ ' ) ) } )",
88
95
CloudProviders . AmazonDrive => $ "Amazon Drive",
89
- CloudProviders . Nextcloud => $ "Nextcloud",
96
+ CloudProviders . Nextcloud => $ "{ ( ! string . IsNullOrEmpty ( ( string ) namespaceKey ? . GetValue ( "" ) ) ? ( string ) namespaceKey ? . GetValue ( "" ) : " Nextcloud" ) } ",
90
97
CloudProviders . Jottacloud => $ "Jottacloud",
91
98
_ => null
92
99
} ,
You can’t perform that action at this time.
0 commit comments