Merge pull request #222 from resin-io/fix/use-same-image

Fix "Use same image" not preserving the image selection
This commit is contained in:
Juan Cruz Viotti 2016-03-31 08:49:18 -04:00
commit ef16f69df9

View File

@ -101,7 +101,15 @@ app.controller('AppController', function(
// the settings screen when a burn finished
// and goes back to the main screen with the back button.
if (!this.writer.isBurning()) {
this.selection.clear();
this.selection.clear({
// Preserve image, in case there is one, otherwise
// we revert the behaviour of "Use same image".
preserveImage: true
});
this.writer.resetState();
}