mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 04:06:45 +01:00
woohoo!
This commit is contained in:
parent
525ed15466
commit
525a455f7a
2 changed files with 69 additions and 49 deletions
|
|
@ -243,9 +243,19 @@ fn unquote (x: &str) -> &str {
|
|||
chars.as_str()
|
||||
}
|
||||
impl Dialog {
|
||||
fn menu_selected (&self) -> Option<usize> { todo!() }
|
||||
fn device_selected (&self) -> Option<usize> { todo!() }
|
||||
fn message (&self) -> Option<&str> { todo!() }
|
||||
fn browser (&self) -> Option<&Arc<Browser>> { todo!() }
|
||||
fn browser_target (&self) -> Option<&BrowserTarget> { todo!() }
|
||||
fn menu_selected (&self) -> Option<usize> {
|
||||
if let Self::Menu(selected) = self { Some(*selected) } else { None }
|
||||
}
|
||||
fn device_selected (&self) -> Option<usize> {
|
||||
if let Self::Device(selected) = self { Some(*selected) } else { None }
|
||||
}
|
||||
fn message (&self) -> Option<&str> {
|
||||
todo!()
|
||||
}
|
||||
fn browser (&self) -> Option<&Arc<Browser>> {
|
||||
todo!()
|
||||
}
|
||||
fn browser_target (&self) -> Option<&BrowserTarget> {
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue