mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-20 21:37:17 +00:00

We have logic that displays useful log messages about the state of the flashing, as well as update the window progress in each oeprating system (dock in OS X, task bar in Windows, etc), however since this logic lives in the controller, the progress reports are completely frozen if the user navigates away from the main screen (to the settings page for example). As a solution, we move the code that subscribes to the state change events to a global `.run()` so it can persist page changes. Since making sure the listeners are unregistered is not relevant anymore (since the code is not running in a controller anymore), we get rid of `NotifierService`, a module we built for this purpose, and directly subscribe to the Redux store instead. Signed-off-by: Juan Cruz Viotti <jviottidc@gmail.com>