git-watchtower 2.3.14 → 2.3.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/casino/index.js +6 -7
package/package.json
CHANGED
package/src/casino/index.js
CHANGED
|
@@ -111,13 +111,12 @@ function disable() {
|
|
|
111
111
|
// up to ~15 frames × 120 ms = 1.8 s after disable, and lossMessage stayed
|
|
112
112
|
// set so isLossAnimating() reported true into the next session.
|
|
113
113
|
resetLossState();
|
|
114
|
-
//
|
|
115
|
-
//
|
|
116
|
-
//
|
|
117
|
-
//
|
|
118
|
-
//
|
|
119
|
-
//
|
|
120
|
-
marqueeCallback = null;
|
|
114
|
+
// KEEP marqueeCallback set across disable→enable cycles. The bin wires
|
|
115
|
+
// this callback exactly once at startup; nulling it here would mean a
|
|
116
|
+
// user-triggered casino toggle (off then on with `c`) would leave the
|
|
117
|
+
// marquee interval ticking with no render trigger, freezing the
|
|
118
|
+
// animation until some other event forced a redraw. The interval body
|
|
119
|
+
// is already gated on `casinoEnabled`, which is the source of truth.
|
|
121
120
|
// Cancel any pending sound timeouts (jackpot bell chains, multi-play
|
|
122
121
|
// mega-jackpot files) so audio doesn't continue after the user
|
|
123
122
|
// toggled casino mode off — and so child processes from the file-play
|