From dcdc7a18e267f2b13fa40d05d076d232fd3d2322 Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Thu, 10 Mar 2016 17:15:57 -0400 Subject: [PATCH] Fix broken state when going to settings in the success screen --- lib/browser/app.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/browser/app.js b/lib/browser/app.js index c24ba8a7..7adb6a04 100644 --- a/lib/browser/app.js +++ b/lib/browser/app.js @@ -93,6 +93,14 @@ app.controller('AppController', function( this.writer = ImageWriterService; this.scanner = DriveScannerService; + // This catches the case where the user enters + // 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.writer.resetState(); + } + NotifierService.subscribe($scope, 'image-writer:state', function(state) { AnalyticsService.log(`Progress: ${state.progress}% at ${state.speed} MB/s`);