mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-20 09:46:31 +00:00
Avoid Invalid percentage
exceptions
Changelog-entry: Avoid `Invalid percentage` exceptions Change-type: patch
This commit is contained in:
parent
4317892421
commit
6b6a0d7b4f
@ -91,7 +91,7 @@ exports.currentWindow = electron.remote.getCurrentWindow()
|
|||||||
*/
|
*/
|
||||||
exports.set = (state) => {
|
exports.set = (state) => {
|
||||||
// eslint-disable-next-line no-eq-null
|
// eslint-disable-next-line no-eq-null
|
||||||
if (state.percentage !== null) {
|
if (state.percentage != null) {
|
||||||
exports.currentWindow.setProgressBar(utils.percentageToFloat(state.percentage))
|
exports.currentWindow.setProgressBar(utils.percentageToFloat(state.percentage))
|
||||||
}
|
}
|
||||||
exports.currentWindow.setTitle(getWindowTitle(state))
|
exports.currentWindow.setTitle(getWindowTitle(state))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user