remove toggle action

This commit is contained in:
yggverse 2024-12-18 06:17:23 +02:00
parent c521ae4f5d
commit c4fdad41eb
2 changed files with 1 additions and 9 deletions

View File

@ -132,7 +132,7 @@ impl Page {
/// Toggle `Find` widget /// Toggle `Find` widget
pub fn find(&self) { pub fn find(&self) {
self.search.toggle() self.search.show()
} }
/// Navigate home URL (parsed from current navigation entry) /// Navigate home URL (parsed from current navigation entry)

View File

@ -79,14 +79,6 @@ impl Search {
self.g_box.set_visible(false) 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 /// * currently supports [TextView](https://docs.gtk.org/gtk4/class.TextView.html) only
pub fn set(&self, text_view: Option<TextView>) { pub fn set(&self, text_view: Option<TextView>) {
self.subject.replace(text_view.map(Subject::new)); self.subject.replace(text_view.map(Subject::new));