From 1f678d7a7695fc26319447513c5678762179b4b9 Mon Sep 17 00:00:00 2001 From: yggverse Date: Wed, 18 Dec 2024 09:54:29 +0200 Subject: [PATCH] fix update order --- src/app/browser/window/tab/item/page/search/form.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/browser/window/tab/item/page/search/form.rs b/src/app/browser/window/tab/item/page/search/form.rs index 4ac23bcc..7a7e57c1 100644 --- a/src/app/browser/window/tab/item/page/search/form.rs +++ b/src/app/browser/window/tab/item/page/search/form.rs @@ -63,6 +63,8 @@ impl Form { input.entry.text().as_str(), match_case.is_active(), ); + input.update(!matches.is_empty()); + navigation.update(matches); if !this.text().is_empty() { result.update(navigation.position(), navigation.total()); result.label.set_visible(true); @@ -71,8 +73,6 @@ impl Form { result.label.set_visible(false); separator.set_visible(false); } - input.update(!matches.is_empty()); - navigation.update(matches); } }); @@ -103,6 +103,8 @@ impl Form { input.entry.text().as_str(), this.is_active(), ); + input.update(!matches.is_empty()); + navigation.update(matches); if !input.entry.text().is_empty() { result.update(navigation.position(), navigation.total()); result.label.set_visible(true); @@ -111,8 +113,6 @@ impl Form { result.label.set_visible(false); separator.set_visible(false); } - input.update(!matches.is_empty()); - navigation.update(matches); } });