mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-27 21:26:38 +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.writer = ImageWriterService;
|
||||||
this.scanner = DriveScannerService;
|
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) {
|
NotifierService.subscribe($scope, 'image-writer:state', function(state) {
|
||||||
AnalyticsService.log(`Progress: ${state.progress}% at ${state.speed} MB/s`);
|
AnalyticsService.log(`Progress: ${state.progress}% at ${state.speed} MB/s`);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user