mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 09:10:08 +00:00
remove toggle action
This commit is contained in:
parent
c521ae4f5d
commit
c4fdad41eb
@ -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)
|
||||||
|
@ -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));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user