Skip to content

Commit cdd1611

Browse files
committed
Version bump, changelog update
1 parent af87096 commit cdd1611

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

packages/camera/camera_windows/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.2.6+5
2+
3+
* Use temp directory fallback when Pictures folder is unavailable
4+
15
## 0.2.6+4
26

37
* Removes usage of the deprecated and ignored `maxVideoDuration` in the example.

packages/camera/camera_windows/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: camera_windows
22
description: A Flutter plugin for getting information about and controlling the camera on Windows.
33
repository: https://github.com/flutter/packages/tree/main/packages/camera/camera_windows
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+camera%22
5-
version: 0.2.6+4
5+
version: 0.2.6+5
66

77
environment:
88
sdk: ^3.8.0

packages/camera/camera_windows/windows/camera_plugin.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ std::string GetCurrentTimeString() {
8686
}
8787

8888
// Builds file path for picture capture.
89+
/// If Pictures folder exist use it, otherwise use temp directory
90+
/// This fallback prevents crashes or unexpected failures on systems where the Pictures folder is unavailable or restricted
8991
std::optional<std::string> GetFilePathForPicture() {
9092
ComHeapPtr<wchar_t> known_folder_path;
9193
HRESULT hr = SHGetKnownFolderPath(FOLDERID_Pictures, KF_FLAG_CREATE, nullptr,

0 commit comments

Comments
 (0)