Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: disable map selector filters until 0.10 #136

Merged
merged 1 commit into from
Aug 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading