Skip to content

ADFA-4884 fix(maps): FQR delete-list X disarms the map trash tool too - #458

Merged
luisguzman-adfa merged 2 commits into
mainfrom
fix/ADFA-4884-delete-x-disarm-tool
Aug 21, 2026
Merged

luisguzman-adfa merged 2 commits into
mainfrom
fix/ADFA-4884-delete-x-disarm-tool

Conversation

@luisguzman-adfa

Copy link
Copy Markdown
Collaborator

Follow-up to ADFA-4884 (not reopening it): closing the delete list via its X left the map's trash tool armed, so tapping a region reopened the list -- the two weren't in lockstep. The X now calls __k2goDisarmDelete (clicks the map's trash toggle off when armed), which routes through the existing onDeleteToolState(false) path; the list also hides directly as a fallback. One file, no new strings.

Follow-up to ADFA-4884 (not reopening it): closing the delete list via its X
left the map's trash tool armed, so tapping a region reopened the list -- the two
weren't in lockstep. The X now calls __k2goDisarmDelete (clicks the map's trash
toggle off when armed), which routes through the existing onDeleteToolState(false)
path; the list also hides directly as a fallback. One file, no new strings.
Code-review nit: the map trash-tool button title was matched in two places (the
click listener and __k2goDisarmDelete). Extract it to a single DEL_TITLE var so a
future title change is one edit, not two.
@luisguzman-adfa
luisguzman-adfa merged commit f1165e0 into main Aug 21, 2026
3 checks passed
@luisguzman-adfa
luisguzman-adfa deleted the fix/ADFA-4884-delete-x-disarm-tool branch August 21, 2026 13:43
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.

1 participant