Keep the composer out of a dialog's field order
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user