mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-29 14:16:36 +00:00
fix(gui): Fix image checks in image selections (#1573)
I must have screwed something up during a rebase, this mends the partition table an windows image checks. Change-Type: patch
This commit is contained in:
parent
1b695a49e9
commit
1b79d50288
@ -83,10 +83,10 @@ module.exports = function(
|
||||
Bluebird.try(() => {
|
||||
let message = null;
|
||||
|
||||
if (supportedFormats.looksLikeWindowsImage(image)) {
|
||||
if (supportedFormats.looksLikeWindowsImage(image.path)) {
|
||||
analytics.logEvent('Possibly Windows image', image);
|
||||
message = messages.warning.looksLikeWindowsImage();
|
||||
} else if (supportedFormats.missingPartitionTable(image)) {
|
||||
} else if (!image.hasMBR) {
|
||||
analytics.logEvent('Missing partition table', image);
|
||||
message = messages.warning.missingPartitionTable();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user