mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-24 03:36:36 +00:00
fix(drive-scanner): Dynamically get unsafe mode setting (#1852)
Due to the SDK keeping it's options once initialized, the unsafe mode setting change was not reflected on subsequent scans. Change-Type: patch
This commit is contained in:
parent
773ddb6e9e
commit
66cb7293e7
@ -32,7 +32,9 @@ const BLOBS_DIRECTORY = path.join(__dirname, '..', '..', 'blobs')
|
||||
|
||||
const scanner = SDK.createScanner({
|
||||
standard: {
|
||||
includeSystemDrives: settings.get('unsafeMode')
|
||||
get includeSystemDrives () {
|
||||
return settings.get('unsafeMode')
|
||||
}
|
||||
},
|
||||
usbboot: {
|
||||
readFile: (name) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user