mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
show results on entry is not empty
This commit is contained in:
parent
98d2f15136
commit
971ee50dfe
1 changed files with 2 additions and 2 deletions
|
|
@ -57,13 +57,13 @@ impl Form {
|
||||||
let result = result.clone();
|
let result = result.clone();
|
||||||
let separator = separator.clone();
|
let separator = separator.clone();
|
||||||
let subject = subject.clone();
|
let subject = subject.clone();
|
||||||
move |_| {
|
move |this| {
|
||||||
let matches = find(
|
let matches = find(
|
||||||
subject.borrow().as_ref().unwrap(), // @TODO handle
|
subject.borrow().as_ref().unwrap(), // @TODO handle
|
||||||
input.entry.text().as_str(),
|
input.entry.text().as_str(),
|
||||||
match_case.is_active(),
|
match_case.is_active(),
|
||||||
);
|
);
|
||||||
if !matches.is_empty() {
|
if !this.text().is_empty() && !matches.is_empty() {
|
||||||
result.show(0, matches.len());
|
result.show(0, matches.len());
|
||||||
separator.set_visible(true);
|
separator.set_visible(true);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue