Compare commits

...
Author SHA1 Message Date
spinline d11c9d5f58 chore: silence unused Icon variant warning in SidenavCollapsible
Build MIPS Binary / build (push) Successful in 1m52s
2026-02-14 01:27:50 +03:00
spinline 3ce980239c fix: ensure context menu closes after triggering start or stop actions
Build MIPS Binary / build (push) Successful in 1m51s
2026-02-14 01:25:47 +03:00
2 changed files with 9 additions and 2 deletions
+8 -2
View File
@@ -24,10 +24,16 @@ pub fn TorrentContextMenu(
{children()}
</ContextMenuTrigger>
<ContextMenuContent class="w-56 p-1.5">
<ContextMenuItem on:click={let h = hash_c1; move |_| on_action_stored.get_value().run(("start".to_string(), h.clone()))}>
<ContextMenuItem on:click={let h = hash_c1; move |_| {
on_action_stored.get_value().run(("start".to_string(), h.clone()));
crate::components::ui::context_menu::close_context_menu();
}}>
"Başlat"
</ContextMenuItem>
<ContextMenuItem on:click={let h = hash_c2; move |_| on_action_stored.get_value().run(("stop".to_string(), h.clone()))}>
<ContextMenuItem on:click={let h = hash_c2; move |_| {
on_action_stored.get_value().run(("stop".to_string(), h.clone()));
crate::components::ui::context_menu::close_context_menu();
}}>
"Durdur"
</ContextMenuItem>
+1
View File
@@ -114,6 +114,7 @@ pub enum SidenavCollapsible {
#[default]
Offcanvas,
None,
#[allow(dead_code)]
Icon,
}