fix: right-clicking any sidebar item makes all sidebar items bold

This commit is contained in:
mariinkys 2026-02-19 16:32:30 +01:00 committed by Michael Murphy
parent 754b064bff
commit c1c09624bd

View file

@ -246,7 +246,7 @@ where
if let Some(text) = self.model.text.get(key) {
let font = if self.button_is_focused(state, key) {
self.font_active
} else if state.show_context.is_some() || self.button_is_hovered(state, key) {
} else if state.show_context == Some(key) || self.button_is_hovered(state, key) {
self.font_hovered
} else if self.model.is_active(key) {
self.font_active