mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
hide input on page reload
This commit is contained in:
parent
d06538726b
commit
cf86cc2a14
3 changed files with 23 additions and 4 deletions
|
|
@ -23,6 +23,14 @@ impl Input {
|
|||
}
|
||||
|
||||
// Actions
|
||||
pub fn show(&self) {
|
||||
self.widget.show()
|
||||
}
|
||||
|
||||
pub fn hide(&self) {
|
||||
self.widget.hide()
|
||||
}
|
||||
|
||||
pub fn set_default(
|
||||
&self,
|
||||
action_page_open: Arc<SimpleAction>,
|
||||
|
|
@ -30,7 +38,7 @@ impl Input {
|
|||
title: Option<&str>,
|
||||
size_limit: Option<usize>,
|
||||
) {
|
||||
self.widget.update(Some(
|
||||
self.widget.set_child(Some(
|
||||
&Default::new_arc(action_page_open, base, title, size_limit).gobject(),
|
||||
));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue