mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 07:17:18 +00:00
fix(GUI): drive is removed everytime user navigates to main screen (#619)
The problem can be reproduced with the following steps: - Start Etcher. - Plug a single drive, and let Etcher auto-select it. - Navigate to the settings screen. - Go back to the main screen. The drive is auto-removed for a very small amount of time, until auto-selection takes care of selecting it again. This behaviour causes no harm, but its a bit annoying. The problem was caused by a previous fix, which auto-removed the drive if navigating back to the main screen after a flash finished, however the fix no longer makes a lot of sense now that we allow a drive to be selected even when no image has been chosen. Change-Type: patch Changelog-Entry: Prevent selected drive from getting auto-removed when navigating back to the main screen from another screen. Signed-off-by: Juan Cruz Viotti <jviottidc@gmail.com>
This commit is contained in:
parent
2c80ca23a7
commit
be2413d8cb
@ -60,20 +60,6 @@ module.exports = function(
|
||||
throw error;
|
||||
};
|
||||
|
||||
// This catches the case where the user enters
|
||||
// the settings screen when a flash finished
|
||||
// and goes back to the main screen with the back button.
|
||||
if (!FlashStateModel.isFlashing()) {
|
||||
|
||||
this.selection.clear({
|
||||
|
||||
// Preserve image, in case there is one, otherwise
|
||||
// we revert the behaviour of "Use same image".
|
||||
preserveImage: true
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
DriveScannerService.start();
|
||||
|
||||
DriveScannerService.on('error', handleError);
|
||||
|
Loading…
x
Reference in New Issue
Block a user