mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-25 12:16:37 +00:00
Fix broken state when going to settings in the success screen
This commit is contained in:
parent
61b88c95e0
commit
dcdc7a18e2
@ -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`);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user