fix: resolve context menu race condition and add debug logs

This commit is contained in:
spinline
2026-01-31 13:30:23 +03:00
parent aa7bfaf6f5
commit 52fd512554
3 changed files with 9 additions and 3 deletions

View File

@@ -647,7 +647,9 @@ pub fn App() -> impl IntoView {
torrent_hash=cm_target_hash.get()
on_close=Callback::from(move |_| set_cm_visible.set(false))
on_action=Callback::from(move |(action, hash): (String, String)| {
logging::log!("App: Received action '{}' for hash '{}'", action, hash);
if action == "delete" || action == "delete_with_data" {
logging::log!("App: Showing delete modal");
set_pending_action.set(Some((action, hash)));
set_show_delete_modal.set(true);
} else {