refactor: extract toolbar overlay lock helper

This commit is contained in:
lix-2026
2026-05-25 04:28:43 +08:00
parent 1e097a9597
commit aa293fec3f
5 changed files with 17 additions and 10 deletions
@@ -77,6 +77,14 @@ pub(crate) fn sync_text_selection_overlay(
has_text_selection
}
pub(crate) fn toolbar_overlay_locked(
turn_into_open: bool,
color_menu_open: bool,
more_menu_open: bool,
) -> bool {
turn_into_open || color_menu_open || more_menu_open
}
#[allow(clippy::too_many_arguments)]
pub(crate) fn close_editor_floating_overlays(
set_slash_open: WriteSignal<bool>,