mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 04:06:45 +01:00
refactor + not sure whats up with the double padding
This commit is contained in:
parent
39407c9760
commit
c51d1cf643
10 changed files with 388 additions and 393 deletions
|
|
@ -20,7 +20,14 @@ pub struct AddSampleModal {
|
|||
_search: Option<String>,
|
||||
}
|
||||
|
||||
exit!(AddSampleModal);
|
||||
impl Exit for AddSampleModal {
|
||||
fn exited (&self) -> bool {
|
||||
self.exited
|
||||
}
|
||||
fn exit (&mut self) {
|
||||
self.exited = true
|
||||
}
|
||||
}
|
||||
|
||||
impl Widget for AddSampleModal {
|
||||
type Engine = Tui;
|
||||
|
|
@ -63,6 +70,7 @@ impl Widget for AddSampleModal {
|
|||
//Lozenge(Style::default()).draw(to)
|
||||
}
|
||||
}
|
||||
|
||||
impl Handle<Tui> for AddSampleModal {
|
||||
fn handle (&mut self, from: &Tui) -> Perhaps<bool> {
|
||||
if handle_keymap(self, &from.event(), KEYMAP_ADD_SAMPLE)? {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue