Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-05-28 10:11:35 +08:00
parent 41c8e1a538
commit 41027f7019

View File

@@ -232,7 +232,8 @@ class MainController extends GetxController
.toList(); .toList();
} }
this.navigationBars = navigationBars; this.navigationBars = navigationBars;
selectedIndex.value = Pref.defaultHomePageIndex; final defPage = Pref.defaultHomePage;
selectedIndex.value = navigationBars.indexWhere((e) => e == defPage);
} }
void checkDefaultSearch([bool shouldCheck = false]) { void checkDefaultSearch([bool shouldCheck = false]) {