Skip to content

fix: reset selected stage type when switching tabs#210

Merged
OpenSauce merged 1 commit intomainfrom
fix/tab-switch-stage-selection
Mar 1, 2026
Merged

fix: reset selected stage type when switching tabs#210
OpenSauce merged 1 commit intomainfrom
fix/tab-switch-stage-selection

Conversation

@OpenSauce
Copy link
Owner

Switching from the Amp tab to the Effects tab (or vice versa) did not update selected_stage_type, so clicking "Add Stage" would add the previously selected stage from the other tab's category.

Copilot AI review requested due to automatic review settings March 1, 2026 21:16
@OpenSauce OpenSauce force-pushed the fix/tab-switch-stage-selection branch from c0c1027 to 791c3a9 Compare March 1, 2026 21:19
Copy link
Contributor

Copilot AI left a comment

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 GUI state issue where switching between Amp and Effects tabs did not update selected_stage_type, causing Add Stage to add a stage from the previously active tab’s category.

Changes:

  • On Message::TabSelected, remap the active tab to a StageCategory (Amp/Effect).
  • If the stored selected_stage_type is from a different category, reset it to the first StageType available for the newly selected category.

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

@OpenSauce OpenSauce force-pushed the fix/tab-switch-stage-selection branch from 791c3a9 to 08c5445 Compare March 1, 2026 21:20
Switching from the Amp tab to the Effects tab (or vice versa) did not
update selected_stage_type, so clicking "Add Stage" would add the
previously selected stage from the other tab's category.
@OpenSauce OpenSauce force-pushed the fix/tab-switch-stage-selection branch from 08c5445 to 4921562 Compare March 1, 2026 21:22
@OpenSauce OpenSauce merged commit 6939476 into main Mar 1, 2026
7 checks passed
@OpenSauce OpenSauce deleted the fix/tab-switch-stage-selection branch March 1, 2026 21:25
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