@@ -9,19 +9,19 @@ public static class OpenFolderDialog
99 OperatingSystem . IsMacOS ( ) ||
1010 ( OperatingSystem . IsLinux ( ) && Gtk . Global . IsSupported ) ;
1111
12- public static Task < string ? > OpenFolderAsync ( )
12+ public static Task < string ? > OpenFolder ( )
1313 {
1414 if ( OperatingSystem . IsWindows ( ) )
1515 {
16- return OpenFolderAsyncWindows ( ) ;
16+ return OpenFolderWindows ( ) ;
1717 }
1818 else if ( OperatingSystem . IsMacOS ( ) )
1919 {
20- return OpenFolderAsyncMacOS ( ) ;
20+ return OpenFolderMacOS ( ) ;
2121 }
2222 else if ( OperatingSystem . IsLinux ( ) )
2323 {
24- return OpenFolderAsyncLinux ( ) ;
24+ return OpenFolderLinux ( ) ;
2525 }
2626 else
2727 {
@@ -30,36 +30,36 @@ public static class OpenFolderDialog
3030 }
3131
3232 [ SupportedOSPlatform ( "windows" ) ]
33- private unsafe static Task < string ? > OpenFolderAsyncWindows ( )
33+ private unsafe static Task < string ? > OpenFolderWindows ( )
3434 {
3535 return Task . FromResult < string ? > ( null ) ;
3636 }
3737
3838 [ SupportedOSPlatform ( "macos" ) ]
39- private static Task < string ? > OpenFolderAsyncMacOS ( )
39+ private static Task < string ? > OpenFolderMacOS ( )
4040 {
4141 return ProcessExecutor . TryRun ( "osascript" , "-e" , "POSIX path of (choose folder)" ) ;
4242 }
4343
4444 [ SupportedOSPlatform ( "linux" ) ]
45- private static Task < string ? > OpenFolderAsyncLinux ( )
45+ private static Task < string ? > OpenFolderLinux ( )
4646 {
4747 return Task . FromResult < string ? > ( null ) ;
4848 }
4949
50- public static Task < string [ ] ? > OpenFoldersAsync ( )
50+ public static Task < string [ ] ? > OpenFolders ( )
5151 {
5252 if ( OperatingSystem . IsWindows ( ) )
5353 {
54- return OpenFoldersAsyncWindows ( ) ;
54+ return OpenFoldersWindows ( ) ;
5555 }
5656 else if ( OperatingSystem . IsMacOS ( ) )
5757 {
58- return OpenFoldersAsyncMacOS ( ) ;
58+ return OpenFoldersMacOS ( ) ;
5959 }
6060 else if ( OperatingSystem . IsLinux ( ) )
6161 {
62- return OpenFoldersAsyncLinux ( ) ;
62+ return OpenFoldersLinux ( ) ;
6363 }
6464 else
6565 {
@@ -68,10 +68,10 @@ public static class OpenFolderDialog
6868 }
6969
7070 [ SupportedOSPlatform ( "windows" ) ]
71- private static async Task < string [ ] ? > OpenFoldersAsyncWindows ( )
71+ private static async Task < string [ ] ? > OpenFoldersWindows ( )
7272 {
7373 // Todo: proper Windows implementation
74- string ? path = await OpenFolderAsync ( ) ;
74+ string ? path = await OpenFolder ( ) ;
7575 if ( string . IsNullOrEmpty ( path ) )
7676 {
7777 return null ; // User canceled the dialog
@@ -80,10 +80,10 @@ public static class OpenFolderDialog
8080 }
8181
8282 [ SupportedOSPlatform ( "macos" ) ]
83- private static async Task < string [ ] ? > OpenFoldersAsyncMacOS ( )
83+ private static async Task < string [ ] ? > OpenFoldersMacOS ( )
8484 {
8585 // Todo: proper Mac implementation
86- string ? path = await OpenFolderAsync ( ) ;
86+ string ? path = await OpenFolder ( ) ;
8787 if ( string . IsNullOrEmpty ( path ) )
8888 {
8989 return null ; // User canceled the dialog
@@ -92,10 +92,10 @@ public static class OpenFolderDialog
9292 }
9393
9494 [ SupportedOSPlatform ( "linux" ) ]
95- private static async Task < string [ ] ? > OpenFoldersAsyncLinux ( )
95+ private static async Task < string [ ] ? > OpenFoldersLinux ( )
9696 {
9797 // Todo: proper Linux implementation
98- string ? path = await OpenFolderAsync ( ) ;
98+ string ? path = await OpenFolder ( ) ;
9999 if ( string . IsNullOrEmpty ( path ) )
100100 {
101101 return null ; // User canceled the dialog
0 commit comments