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

This commit is contained in:
Sebastian authored and Hakan Seven committed 2026-06-25 00:02:17 +03:00
1 parent 2b898d6f22
commit d0003534a0
12 files changed
+568 -60

No files matched your search

+2 -2
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