remove extra update actions

This commit is contained in:
yggverse 2025-01-27 13:40:10 +02:00
parent d0287695ff
commit b3b2763af1
4 changed files with 21 additions and 47 deletions

View file

@ -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,