Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
mobile_scanner
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Navaron Bracke
2023-10-31 11:08:21 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2309bac627514ba0f89afd35bae3f1f3388476ab
2309bac6
1 parent
cd020dd9
do not abort capture session if torch fails on MacOS
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
macos/Classes/MobileScannerPlugin.swift
macos/Classes/MobileScannerPlugin.swift
View file @
2309bac
...
...
@@ -279,8 +279,8 @@ public class MobileScannerPlugin: NSObject, FlutterPlugin, FlutterStreamHandler,
do
{
self
.
toggleTorchInternal
(
.
on
)
}
catch
{
result
(
FlutterError
(
code
:
"MobileScanner"
,
message
:
error
.
localizedDescription
,
details
:
nil
))
return
// If the torch could not be turned on,
// continue the capture session.
}
}
...
...
Please
register
or
login
to post a comment