mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-27 21:26:38 +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({
|
const scanner = SDK.createScanner({
|
||||||
standard: {
|
standard: {
|
||||||
includeSystemDrives: settings.get('unsafeMode')
|
get includeSystemDrives () {
|
||||||
|
return settings.get('unsafeMode')
|
||||||
|
}
|
||||||
},
|
},
|
||||||
usbboot: {
|
usbboot: {
|
||||||
readFile: (name) => {
|
readFile: (name) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user