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 <jviotti@openmailbox.org>
This commit is contained in:
Juan Cruz Viotti 2016-10-07 15:32:16 -03:00 committed by GitHub
parent 4e5b000440
commit 60e3cbd22d

View File

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