diff --git a/src/app/browser/window/tab/item/page/navigation.rs b/src/app/browser/window/tab/item/page/navigation.rs index ee46f54c..f5408418 100644 --- a/src/app/browser/window/tab/item/page/navigation.rs +++ b/src/app/browser/window/tab/item/page/navigation.rs @@ -88,7 +88,7 @@ impl Navigation { pub fn update(&self, progress_fraction: Option) { self.home.update(self.request.uri()); self.history.update(); - self.reload.update(!self.request.is_empty()); + self.reload.update(!self.request.text().is_empty()); self.request.update(progress_fraction); self.bookmark.update(); } diff --git a/src/app/browser/window/tab/item/page/navigation/request.rs b/src/app/browser/window/tab/item/page/navigation/request.rs index c3f62e6a..05be6e78 100644 --- a/src/app/browser/window/tab/item/page/navigation/request.rs +++ b/src/app/browser/window/tab/item/page/navigation/request.rs @@ -103,10 +103,6 @@ impl Request { &self.widget.gobject() } - pub fn is_empty(&self) -> bool { - self.widget.is_empty() - } - pub fn text(&self) -> GString { self.widget.text() } diff --git a/src/app/browser/window/tab/item/page/navigation/request/widget.rs b/src/app/browser/window/tab/item/page/navigation/request/widget.rs index cf696a9b..ba9bfcdb 100644 --- a/src/app/browser/window/tab/item/page/navigation/request/widget.rs +++ b/src/app/browser/window/tab/item/page/navigation/request/widget.rs @@ -211,10 +211,6 @@ impl Widget { &self.gobject } - pub fn is_empty(&self) -> bool { - 0 == self.gobject.text_length() - } - pub fn text(&self) -> GString { self.gobject.text() }