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:
Jonas Hermsmeier 2017-07-06 22:00:07 +02:00 committed by Juan Cruz Viotti
parent 1b695a49e9
commit 1b79d50288

View File

@ -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();
}