Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(menu): preview not updated after returning to prev menu
Bug: After returning from a sub-menu to its previous menu, the preview of the symbol under cursor in the previous menu is not started. Fix: The issue stems from the conditional check in `dropbar_menu_t:preview_symbol_at()`. It compares the component to be previewed with `self.symbol_previewed` and returns early if they match, aiming to reduce unnecessary calls to `dropbar_symbol_t:preview()`. However, this approach becomes problematic when returning from sub-menus to their previous menus, as the `symbol_previewed` of the previous menu consistently matches the symbol under the cursor, preventing the symbol's preview from starting. Removing the check fixes the issue.
- Loading branch information