Skip to content

Don't carry fields over between preferences.json macro entries - #71

Open
f1adang wants to merge 1 commit into
bdring:mainfrom
f1adang:fix/macro-entry-reset
Open

f1adang wants to merge 1 commit into
bdring:mainfrom
f1adang:fix/macro-entry-reset

Conversation

@f1adang

@f1adang f1adang commented Sep 17, 2026

Copy link
Copy Markdown

PreferencesListener didn't clear name/type/action between entries. An entry
missing a field inherited the previous entry's value, e.g. a filename that
was prefixed twice and shown as "//localfs/". The other macro listeners
already reset per entry.

PreferencesListener never cleared _name, _target and _filename between macro
entries, unlike the other macro listeners. An entry without an "action" reused
the previous entry's filename, which already had its prefix, so it got a
second one (shown as "//localfs/"). An entry without a "type" reused the
previous type and was added when it should have been skipped.

Clear the fields at the start of each entry, and skip entries with nothing to
run.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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