mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
remove toggle action
This commit is contained in:
parent
c521ae4f5d
commit
c4fdad41eb
2 changed files with 1 additions and 9 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue