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]) {
if (_homeController.enableSearchWord) {
if (shouldCheck &&
_mainController
.pages[_mainController.pageController.page?.round() ?? 0]
is! HomePage) {
_mainController.pages[_mainController.selectedIndex] is! HomePage) {
return;
}
int now = DateTime.now().millisecondsSinceEpoch;