Fix soft deadlock when ICU is missing

This commit is contained in:
Leonard Hecker
2025-04-04 23:54:51 +02:00
parent 70f3cee679
commit 167c5aa447

View File

@@ -382,7 +382,10 @@ fn draw(ctx: &mut Context, state: &mut State) {
let root_focused = ctx.contains_focus();
draw_menubar(ctx, state);
if state.wants_search.kind != StateSearchKind::Hidden {
if !matches!(
state.wants_search.kind,
StateSearchKind::Hidden | StateSearchKind::Disabled
) {
draw_search(ctx, state);
}
draw_editor(ctx, state);