(whichCount, amount, reset, inMB)
| 1205 | get isReady () { return this.#win.isVisible(this.#parent) } |
| 1206 | |
| 1207 | #doCount (whichCount, amount, reset, inMB) { |
| 1208 | const thisCounter = `#${whichCount}` |
| 1209 | this[thisCounter] = ( reset ) ? amount : amount + this[thisCounter] |
| 1210 | |
| 1211 | if ( whichCount === 'current' && this.#win.isVisible(this.#parent) ) { |
| 1212 | this.#win.win.main.setProgressBar(Math.max(0, Math.min(1, this.#current / this.#total))) |
| 1213 | } |
| 1214 | |
| 1215 | this.#win.sendToValidWindow(this.#parent, `loading:${whichCount}`, this[thisCounter], inMB) |
| 1216 | } |
| 1217 | |
| 1218 | /** |
| 1219 | * Hide the loading window |
no test coverage detected