mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-01 23:59:50 +08:00
opt: searchword: check page
log #57 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user