mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-28 21:56:32 +00:00
Merge pull request #204 from resin-io/fix/finish-settings
Fix broken state when going to settings in the success screen
This commit is contained in:
commit
e0861b25da
@ -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