From e0b5bc6b7bb2fa2b096276b9f040984400617394 Mon Sep 17 00:00:00 2001 From: kirill <63228361+kirill-21@users.noreply.github.com> Date: Sun, 6 Aug 2023 19:50:17 +0300 Subject: [PATCH 1/3] Fixed crashing on windows when picking a directory --- lib/src/windows/file_picker_windows.dart | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/src/windows/file_picker_windows.dart b/lib/src/windows/file_picker_windows.dart index 2a2f8629..da39ef72 100644 --- a/lib/src/windows/file_picker_windows.dart +++ b/lib/src/windows/file_picker_windows.dart @@ -131,7 +131,6 @@ class FilePickerWindows extends FilePicker { final hwndOwner = lockParentWindow ? GetForegroundWindow() : NULL; hr = fileDialog.show(hwndOwner); if (!SUCCEEDED(hr)) { - fileDialog.release(); CoUninitialize(); if (hr == HRESULT_FROM_WIN32(ERROR_CANCELLED)) { @@ -154,7 +153,6 @@ class FilePickerWindows extends FilePicker { hr = item.release(); if (!SUCCEEDED(hr)) throw WindowsException(hr); - hr = fileDialog.release(); CoUninitialize(); return Future.value(path); From 03a741c35808eeb840b70df974e9eb855a2f0c2d Mon Sep 17 00:00:00 2001 From: kirill <63228361+kirill-21@users.noreply.github.com> Date: Sun, 6 Aug 2023 20:02:51 +0300 Subject: [PATCH 2/3] Update CHANGELOG.md --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 78d09054..ac8dc6e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +## 5.3.4 +fix [#1317](https://github.com/miguelpruivo/flutter_file_picker/issues/1317) ## 5.3.3 fix [#1312](https://github.com/miguelpruivo/flutter_file_picker/issues/1312) ## 5.3.2 From e65d4f320dcb76bd43a1d88e8e5ab0250126102c Mon Sep 17 00:00:00 2001 From: kirill <63228361+kirill-21@users.noreply.github.com> Date: Sun, 6 Aug 2023 20:03:45 +0300 Subject: [PATCH 3/3] Bumped version --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index 6e66ba03..9bf4bd88 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -3,7 +3,7 @@ description: A package that allows you to use a native file explorer to pick sin homepage: https://github.com/miguelpruivo/plugins_flutter_file_picker repository: https://github.com/miguelpruivo/flutter_file_picker issue_tracker: https://github.com/miguelpruivo/flutter_file_picker/issues -version: 5.3.3 +version: 5.3.4 dependencies: flutter: