Skip to content

Commit

Permalink
fix updateStatusBar
Browse files Browse the repository at this point in the history
  • Loading branch information
unanmed committed Feb 2, 2022
1 parent bb32708 commit 9a35e51
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions libs/control.js
Original file line number Diff line number Diff line change
Expand Up @@ -3053,12 +3053,10 @@ control.prototype.updateStatusBar = function (doNotCheckAutoEvents) {
control.prototype.updateStatusBar_update = function () {
if (!core.control.needUpdate) return;
if (!core.isPlaying() || core.hasFlag('__statistics__')) return;
setTimeout(function () {
core.control.controldata.updateStatusBar();
if (!core.control.noAutoEvents) core.checkAutoEvents();
core.control._updateStatusBar_setToolboxIcon();
core.clearRouteFolding();
})
core.control.controldata.updateStatusBar();
if (!core.control.noAutoEvents) core.checkAutoEvents();
core.control._updateStatusBar_setToolboxIcon();
core.clearRouteFolding();
core.control.needUpdate = false;
core.control.noAutoEvents = true;
}
Expand Down

0 comments on commit 9a35e51

Please sign in to comment.