Skip to content

Clear gpsHelpTimer when locate is deactivated #198

@jasoneplumb

Description

@jasoneplumb

Suggested in #195 (second review).

Context: gpsHelpTimer (the ≤12s desktop GPS-acquisition guidance timer in src/main.ts) isn't cleared when locate turns off. Not a real bug — the callback guards state.locateState === 'off' so no toast fires — but the timer keeps running after deactivation (minor resource leak).

Scope: src/main.ts — clear gpsHelpTimer alongside permissionDeniedTimer on locate-off paths (button off + denial handler), ideally via a shared cleanup helper.

Acceptance: turning locate off cancels any pending gpsHelpTimer; no behavior change otherwise.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions