Skip to content

Commit

Permalink
Fix settings panel not properly suspending the hide timeout when ther…
Browse files Browse the repository at this point in the history
…e are persistent components
  • Loading branch information
HalfbyteHeroes committed Sep 5, 2024
1 parent 0fe02fa commit f46aa08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ts/components/settingspanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export class SettingsPanel extends Container<SettingsPanelConfig> {
let config = this.getConfig();

uimanager.onControlsHide.subscribe(() => this.hideHoveredSelectBoxes());
uimanager.onComponentViewModeChanged.subscribe((_, { mode }) => this.trackComponentViewMode(mode));

if (config.hideDelay > -1) {
this.hideTimeout = new Timeout(config.hideDelay, () => {
Expand Down Expand Up @@ -247,7 +248,6 @@ export class SettingsPanel extends Container<SettingsPanelConfig> {
this.activePage = component;
}
super.addComponent(component);
component.onViewModeChanged.subscribe((_, { mode }) => this.trackComponentViewMode(mode));
}

protected suspendHideTimeout() {
Expand Down

0 comments on commit f46aa08

Please sign in to comment.