opt: searchword: check page

log #57

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-12-28 14:54:01 +08:00
parent 6260809e40
commit dbd8b80507

View File

@@ -71,9 +71,7 @@ class _MainAppState extends State<MainApp>
void _checkDefaultSearch([bool shouldCheck = false]) { void _checkDefaultSearch([bool shouldCheck = false]) {
if (_homeController.enableSearchWord) { if (_homeController.enableSearchWord) {
if (shouldCheck && if (shouldCheck &&
_mainController _mainController.pages[_mainController.selectedIndex] is! HomePage) {
.pages[_mainController.pageController.page?.round() ?? 0]
is! HomePage) {
return; return;
} }
int now = DateTime.now().millisecondsSinceEpoch; int now = DateTime.now().millisecondsSinceEpoch;