From e54135745066d8f1525d0caee353167b6de22e58 Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Wed, 30 Mar 2016 16:28:22 -0400 Subject: [PATCH] Fix "Use same image" not preserving the image selection --- lib/browser/app.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/browser/app.js b/lib/browser/app.js index 7adb6a04..ecbe8201 100644 --- a/lib/browser/app.js +++ b/lib/browser/app.js @@ -97,7 +97,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(); }