Keep the composer out of a dialog's field order

This commit is contained in:
Georg Bauer
2026-07-26 10:11:40 +02:00
parent a0c3a72f4e
commit 671724949f
2 changed files with 34 additions and 5 deletions

View File

@@ -62,6 +62,15 @@ impl App {
}
}
/// Whether a dialog covers the window. Focus moves through the whole widget
/// tree, so the layers below have to stay out of the dialog's field order.
pub(super) fn modal_open(&self) -> bool {
self.preferences_open
|| self.pending_project_path.is_some()
|| self.session_rename.is_some()
|| self.menu_session().is_some()
}
fn main_view(&self) -> Element<'_, Message> {
let mut body = row![].width(Length::Fill).height(Length::Fill);
if !self.config.interface.sidebar_collapsed {