Skip to content

Fix max_slow_speed setting saving to min_gap#4

Open
pantic14 wants to merge 1 commit into
mullummer:mainfrom
pantic14:fix-max-slow-speed
Open

Fix max_slow_speed setting saving to min_gap#4
pantic14 wants to merge 1 commit into
mullummer:mainfrom
pantic14:fix-max-slow-speed

Conversation

@pantic14

@pantic14 pantic14 commented Jul 6, 2026

Copy link
Copy Markdown

The change handler for the max slow speed dropdown assigns its value to settings.min_gap instead of settings.max_slow_speed. Two consequences: the slow-speed threshold is never actually saved (it always stays at the default), and changing that dropdown silently overwrites the saved group-gap setting.
Same copy-pasted handler fixed in app.js, app-2025.js and app-by-distance.js.

…he max slow speed dropdown assigned the value to settings.min_gap instead of settings.max_slow_speed, so the slow speed threshold was never saved and changing it silently overwrote the group gap setting. Same copy-pasted handler fixed in all three scripts.
Copilot AI review requested due to automatic review settings July 6, 2026 14:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes a settings persistence bug where the max_slow_speed dropdown change handler was incorrectly saving its value into settings.min_gap, causing the slow-speed threshold to never persist and potentially overwriting the group-gap setting.

Changes:

  • Update the max_slow_speed change handler to write to settings.max_slow_speed (instead of settings.min_gap) in app.js.
  • Apply the same fix to the corresponding handlers in app-2025.js and app-by-distance.js.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
app.js Corrects max_slow_speed dropdown persistence by saving to the proper settings key.
app-by-distance.js Mirrors the same handler fix for the distance-based variant.
app-2025.js Mirrors the same handler fix for the 2025 variant.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants