From a7ca2e527bc0cc040711ee4d60f93eda35f17558 Mon Sep 17 00:00:00 2001 From: Lorenzo Alberto Maria Ambrosi Date: Wed, 11 Aug 2021 12:58:18 +0200 Subject: [PATCH] Restore windows images warning Change-type: patch Changelog-entry: Windows images now show the proper warning again Signed-off-by: Lorenzo Alberto Maria Ambrosi --- lib/gui/app/components/source-selector/source-selector.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gui/app/components/source-selector/source-selector.tsx b/lib/gui/app/components/source-selector/source-selector.tsx index 411b0b51..50902ed6 100644 --- a/lib/gui/app/components/source-selector/source-selector.tsx +++ b/lib/gui/app/components/source-selector/source-selector.tsx @@ -420,7 +420,7 @@ export class SourceSelector extends React.Component< } metadata.SourceType = SourceType; - if (!metadata.hasMBR) { + if (!metadata.hasMBR && this.state.warning === null) { analytics.logEvent('Missing partition table', { metadata }); this.setState({ warning: {