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
|
|
@ -41,7 +41,7 @@ impl Navigation {
|
|||
let request = Rc::new(Request::build(item_action, profile));
|
||||
let reload = Button::reload((window_action, tab_action, item_action), &request);
|
||||
let home = Button::home((window_action, tab_action, item_action), &request);
|
||||
let bookmark = Button::bookmark(window_action);
|
||||
let bookmark = Button::bookmark(window_action, profile, &request);
|
||||
|
||||
// init main widget
|
||||
let widget = Rc::new(Widget::build(
|
||||
|
|
@ -65,15 +65,6 @@ impl Navigation {
|
|||
|
||||
// Actions
|
||||
|
||||
pub fn update(&self) {
|
||||
// init shared request value
|
||||
let request = self.request.strip_prefix();
|
||||
|
||||
// update children components
|
||||
self.bookmark
|
||||
.update(self.profile.bookmark.get(&request).is_ok());
|
||||
}
|
||||
|
||||
pub fn clean(
|
||||
&self,
|
||||
transaction: &Transaction,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue