mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
move bookmark status detection to the navigation level
This commit is contained in:
parent
367b4d017b
commit
b70a5a7867
2 changed files with 2 additions and 4 deletions
|
|
@ -65,7 +65,7 @@ impl Navigation {
|
||||||
// Actions
|
// Actions
|
||||||
|
|
||||||
pub fn update(&self, progress_fraction: Option<f64>) {
|
pub fn update(&self, progress_fraction: Option<f64>) {
|
||||||
self.bookmark.update();
|
self.bookmark.update(false); // @TODO DB from request
|
||||||
self.history.update();
|
self.history.update();
|
||||||
self.home.update(self.request.uri());
|
self.home.update(self.request.uri());
|
||||||
self.reload
|
self.reload
|
||||||
|
|
|
||||||
|
|
@ -20,9 +20,7 @@ impl Bookmark {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Actions
|
// Actions
|
||||||
pub fn update(&self) {
|
pub fn update(&self, is_enabled: bool) {
|
||||||
let is_enabled = false; // @TODO DB
|
|
||||||
|
|
||||||
// Update actions
|
// Update actions
|
||||||
self.window_action
|
self.window_action
|
||||||
.bookmark()
|
.bookmark()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue