Skip to content

Fix AudioMidiPanel missing _reset_to_default - #241

Open
sastraxi wants to merge 2 commits into
mainfrom
fix/audio-midi-reset-to-default
Open

Fix AudioMidiPanel missing _reset_to_default#241
sastraxi wants to merge 2 commits into
mainfrom
fix/audio-midi-reset-to-default

Conversation

@sastraxi

Copy link
Copy Markdown
Collaborator

ArcKnobWidget fires _reset_to_default on LONG_CLICK, but AudioMidiPanel lacked this method, causing AttributeError.

This fix matches the pattern used by mixer/panel.py.

ArcKnobWidget fires _reset_to_default on LONG_CLICK, but AudioMidiPanel
lacked this method, causing AttributeError. Add the standard implementation:
look up the parameter by symbol and set_param to its default value.
This matches the pattern used by mixer/panel.py (the correct variant
that actually calls set_param — unlike gx_cabinet and tap_reverb which
only return early when p is None).
Sign up for freeto 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

@sastraxi