mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-25 12:16:37 +00:00
Reset burn state in FinishController
This commit is contained in:
parent
793001e133
commit
9c5748b54e
@ -90,10 +90,6 @@ app.controller('AppController', function(
|
||||
|
||||
AnalyticsService.logEvent('Restart');
|
||||
|
||||
if (!this.writer.isBurning()) {
|
||||
this.writer.resetState();
|
||||
}
|
||||
|
||||
NotifierService.subscribe($scope, 'image-writer:state', function(state) {
|
||||
AnalyticsService.log(`Progress: ${state.progress}% at ${state.speed} MB/s`);
|
||||
|
||||
@ -214,11 +210,12 @@ app.controller('NavigationController', function($state) {
|
||||
this.open = shell.openExternal;
|
||||
});
|
||||
|
||||
app.controller('FinishController', function($state, SelectionStateService, SettingsService) {
|
||||
app.controller('FinishController', function($state, SelectionStateService, SettingsService, ImageWriterService) {
|
||||
this.settings = SettingsService.data;
|
||||
|
||||
this.restart = function(options) {
|
||||
SelectionStateService.clear(options);
|
||||
ImageWriterService.resetState();
|
||||
$state.go('main');
|
||||
};
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user