Skip to content

Commit

Permalink
fix: disable map selector filters until 0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
tsa96 authored and Gocnak committed Aug 3, 2024
1 parent ed70c78 commit 0677e94
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/pages/map-selector/map-selector.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,13 @@ class MapSelection {
for (const mode of Object.keys(this.gameModeData))
this.gameModeData[mode].filterButton = $(`#${this.gameModeData[mode].idName}FilterButton`);

// Filters disabled until 0.10 which rewrites system - fixes JS errors on steam branch
// When rebasing 0.10 onto this branch, ignore these changes, pick incoming.
// Load the saved filters state
const filtersChanged = this.loadFilters();
// const filtersChanged = this.loadFilters();

// Initialise all the filters events
this.initFilterSaveEventsRecursive(this.panels.filtersPanel);
// this.initFilterSaveEventsRecursive(this.panels.filtersPanel);

this.timesModeButtonsUnchecked = 0;

Expand Down Expand Up @@ -105,7 +107,7 @@ class MapSelection {
filterButton.SetPanelEvent('oncontextmenu', () => this.clearOtherModes(mode));
filterButton.SetPanelEvent('onactivate', () => {
this.onModeButtonPressed(mode);
this.filterSaveEvent(filterButton);
// this.filterSaveEvent(filterButton);
});
}
}
Expand Down

0 comments on commit 0677e94

Please sign in to comment.