arranger: tweaks, incl. remove unused rendering code

This commit is contained in:
🪞👃🪞 2025-05-17 15:02:38 +03:00
parent 5ed69edd02
commit ef6aa9ab07
7 changed files with 65 additions and 300 deletions

View file

@ -204,10 +204,10 @@ impl App {
6.max(self.height() as u16 * 3 / 9)
}
fn focus_editor (&self) -> bool {
self.is_editing()
self.project.editor.is_some()
}
fn is_editing (&self) -> bool {
HasEditor::is_editing(self)
self.project.editor.is_some()
}
fn focus_message (&self) -> bool {
matches!(self.dialog, Some(Dialog::Message(..)))

View file

@ -237,9 +237,6 @@ impl App {
}
impl ScenesView for App {
fn arrangement (&self) -> &Arrangement {
&self.project
}
fn h_scenes (&self) -> u16 {
(self.height() as u16).saturating_sub(20)
}