bring back ToggleDashboard keybind support

This commit is contained in:
Aleksander
2026-01-05 17:53:17 +01:00
parent d8935c041f
commit 1d78da16ab
5 changed files with 27 additions and 17 deletions

View File

@@ -238,16 +238,8 @@ pub(super) fn setup_custom_button<S: 'static>(
return Ok(EventResult::Pass);
}
app.tasks.enqueue(TaskType::Overlay(OverlayTask::Modify(
OverlaySelector::Name(DASH_NAME.into()),
Box::new(move |app, owc| {
if owc.active_state.is_none() {
owc.activate(app);
} else {
owc.deactivate();
}
}),
)));
app.tasks
.enqueue(TaskType::Overlay(OverlayTask::ToggleDashboard));
Ok(EventResult::Consumed)
}),
"::SetToggle" => {