mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
remove extra update actions
This commit is contained in:
parent
d0287695ff
commit
b3b2763af1
4 changed files with 21 additions and 47 deletions
|
|
@ -154,25 +154,6 @@ impl Item {
|
|||
}
|
||||
}
|
||||
|
||||
// Actions
|
||||
pub fn update(&self) {
|
||||
// Update self actions
|
||||
self.action.home.set_enabled(
|
||||
self.page
|
||||
.navigation
|
||||
.request
|
||||
.home()
|
||||
.is_some_and(|home| home.to_string() != self.page.navigation.request.entry.text()),
|
||||
);
|
||||
|
||||
self.action
|
||||
.reload
|
||||
.set_enabled(!self.page.navigation.request.entry.text().is_empty());
|
||||
|
||||
// Update child components
|
||||
self.page.update();
|
||||
}
|
||||
|
||||
pub fn clean(
|
||||
&self,
|
||||
transaction: &Transaction,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue