mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 11:46:41 +01:00
arranger: tweaks, incl. remove unused rendering code
This commit is contained in:
parent
5ed69edd02
commit
ef6aa9ab07
7 changed files with 65 additions and 300 deletions
|
|
@ -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(..)))
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue