From 60e3cbd22d5619ff34a6a025e4f9995861324b83 Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Fri, 7 Oct 2016 15:32:16 -0300 Subject: [PATCH] fix(GUI): don't clear selection state when re-selecting an image (#753) Currently, if the "CHANGE" label at the bottom of the image selection step, once an image has been selected, is clicked, the selection state is cleared. Since https://github.com/resin-io/etcher/pull/602, we allow the drive state to change independently of the image selection state, so the above behaviour doesn't make sense anymore. Fixes: https://github.com/resin-io/etcher/issues/730 Change-Type: patch Changelog-Entry: Don't clear selection state when re-selecting an image. Signed-off-by: Juan Cruz Viotti --- lib/gui/pages/main/controllers/image-selection.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/gui/pages/main/controllers/image-selection.js b/lib/gui/pages/main/controllers/image-selection.js index c4fdadc6..d61b4bc7 100644 --- a/lib/gui/pages/main/controllers/image-selection.js +++ b/lib/gui/pages/main/controllers/image-selection.js @@ -97,13 +97,6 @@ module.exports = function(SupportedFormatsModel, SelectionStateModel, AnalyticsS * ImageSelectionController.reselectImage(); */ this.reselectImage = () => { - - // Reselecting an image automatically - // de-selects the current drive, if any. - // This is made so the user effectively - // "returns" to the first step. - SelectionStateModel.clear(); - this.openImageSelector(); AnalyticsService.logEvent('Reselect image'); };