From c4fdad41eb28de874064198495a5bc044c4fa015 Mon Sep 17 00:00:00 2001 From: yggverse Date: Wed, 18 Dec 2024 06:17:23 +0200 Subject: [PATCH] remove toggle action --- src/app/browser/window/tab/item/page.rs | 2 +- src/app/browser/window/tab/item/page/search.rs | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/app/browser/window/tab/item/page.rs b/src/app/browser/window/tab/item/page.rs index 4ebf93e2..b217bd9d 100644 --- a/src/app/browser/window/tab/item/page.rs +++ b/src/app/browser/window/tab/item/page.rs @@ -132,7 +132,7 @@ impl Page { /// Toggle `Find` widget pub fn find(&self) { - self.search.toggle() + self.search.show() } /// Navigate home URL (parsed from current navigation entry) diff --git a/src/app/browser/window/tab/item/page/search.rs b/src/app/browser/window/tab/item/page/search.rs index b7003b1f..63292ef5 100644 --- a/src/app/browser/window/tab/item/page/search.rs +++ b/src/app/browser/window/tab/item/page/search.rs @@ -79,14 +79,6 @@ impl Search { self.g_box.set_visible(false) } - pub fn toggle(&self) { - if self.g_box.is_visible() { - self.hide() - } else { - self.show() - } - } - /// * currently supports [TextView](https://docs.gtk.org/gtk4/class.TextView.html) only pub fn set(&self, text_view: Option) { self.subject.replace(text_view.map(Subject::new));