Skip to content

Commit a1bb9a6

Browse files
committed
code clean
1 parent fe8b350 commit a1bb9a6

File tree

3 files changed

+0
-4
lines changed

3 files changed

+0
-4
lines changed
265 Bytes
Binary file not shown.
2.62 MB
Binary file not shown.

src/c#/GeneralUpdate.PacketTool/Platforms/Windows/FolderPicker.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,11 @@ public async Task<string> PickFolderTaskAsync()
1010
var folderPicker = new WindowsFolderPicker();
1111
// Might be needed to make it work on Windows 10
1212
folderPicker.FileTypeFilter.Add("*");
13-
1413
// Get the current window's HWND by passing in the Window object
1514
var hwnd = ((MauiWinUIWindow)App.Current.Windows[0].Handler.PlatformView).WindowHandle;
16-
1715
// Associate the HWND with the file picker
1816
WinRT.Interop.InitializeWithWindow.Initialize(folderPicker, hwnd);
19-
2017
var result = await folderPicker.PickSingleFolderAsync();
21-
2218
return result?.Path;
2319
}
2420
}

0 commit comments

Comments
 (0)