mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 17:20:08 +00:00
move bookmark status detection to the navigation level
This commit is contained in:
parent
367b4d017b
commit
b70a5a7867
@ -65,7 +65,7 @@ impl Navigation {
|
||||
// Actions
|
||||
|
||||
pub fn update(&self, progress_fraction: Option<f64>) {
|
||||
self.bookmark.update();
|
||||
self.bookmark.update(false); // @TODO DB from request
|
||||
self.history.update();
|
||||
self.home.update(self.request.uri());
|
||||
self.reload
|
||||
|
@ -20,9 +20,7 @@ impl Bookmark {
|
||||
}
|
||||
|
||||
// Actions
|
||||
pub fn update(&self) {
|
||||
let is_enabled = false; // @TODO DB
|
||||
|
||||
pub fn update(&self, is_enabled: bool) {
|
||||
// Update actions
|
||||
self.window_action
|
||||
.bookmark()
|
||||
|
Loading…
x
Reference in New Issue
Block a user