Fix 5: Allow backward-compatibility and add plugin-template-v2

This commit is contained in:
Sebastian 2026-06-24 17:17:36 +02:00 • committed by Hakan Seven
commit d0003534a0
12 changed files with 568 additions and 60 deletions

View file

@ -324,7 +324,7 @@ pub(super) fn render_small<'a>(
let active = active_tool.as_deref() == Some(id)
|| items
.iter()
.any(|(cmd, _, _)| active_tool.as_deref() == Some(cmd));
.any(|(cmd, _, _)| active_tool.as_deref() == Some(*cmd));
let dd_open = open_dd.as_deref() == Some(id);
let last = last_cmd.get(id).copied().unwrap_or(default);
let cur_icon = last_cmd
@ -464,7 +464,7 @@ pub(super) fn render_large<'a>(
let active = active_tool.as_deref() == Some(id)
|| items
.iter()
.any(|(cmd, _, _)| active_tool.as_deref() == Some(cmd));
.any(|(cmd, _, _)| active_tool.as_deref() == Some(*cmd));
let dd_open = open_dd.as_deref() == Some(id);
let last = last_cmd.get(id).copied().unwrap_or(default);
let cur_icon = last_cmd