From b70a5a7867305e6867f015f5211024a8dbb7e52e Mon Sep 17 00:00:00 2001 From: yggverse Date: Tue, 12 Nov 2024 18:38:10 +0200 Subject: [PATCH] move bookmark status detection to the navigation level --- src/app/browser/window/tab/item/page/navigation.rs | 2 +- src/app/browser/window/tab/item/page/navigation/bookmark.rs | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/app/browser/window/tab/item/page/navigation.rs b/src/app/browser/window/tab/item/page/navigation.rs index 3fa30903..5d70b3e3 100644 --- a/src/app/browser/window/tab/item/page/navigation.rs +++ b/src/app/browser/window/tab/item/page/navigation.rs @@ -65,7 +65,7 @@ impl Navigation { // Actions pub fn update(&self, progress_fraction: Option) { - self.bookmark.update(); + self.bookmark.update(false); // @TODO DB from request self.history.update(); self.home.update(self.request.uri()); self.reload diff --git a/src/app/browser/window/tab/item/page/navigation/bookmark.rs b/src/app/browser/window/tab/item/page/navigation/bookmark.rs index 83536611..a9c4da37 100644 --- a/src/app/browser/window/tab/item/page/navigation/bookmark.rs +++ b/src/app/browser/window/tab/item/page/navigation/bookmark.rs @@ -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()