mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: nav stream
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -47,7 +47,8 @@ class _DynamicsTabPageState
|
||||
|
||||
@override
|
||||
void listener() {
|
||||
if (_mainController.selectedIndex.value == 0) {
|
||||
if (_mainController.navigationBars[0]['id'] != 1 &&
|
||||
_mainController.selectedIndex.value == 0) {
|
||||
return;
|
||||
}
|
||||
super.listener();
|
||||
|
||||
@@ -45,9 +45,12 @@ class MainController extends GetxController {
|
||||
if (GStorage.autoUpdate) {
|
||||
Utils.checkUpdate();
|
||||
}
|
||||
|
||||
setNavBarConfig();
|
||||
|
||||
hideTabBar =
|
||||
GStorage.setting.get(SettingBoxKey.hideTabBar, defaultValue: true);
|
||||
if (hideTabBar) {
|
||||
if (navigationBars.length > 1 && hideTabBar) {
|
||||
bottomBarStream = StreamController<bool>.broadcast();
|
||||
}
|
||||
isLogin.value = Accounts.main.isLogin;
|
||||
@@ -55,8 +58,6 @@ class MainController extends GetxController {
|
||||
SettingBoxKey.dynamicBadgeMode,
|
||||
defaultValue: DynamicBadgeMode.number.index)];
|
||||
|
||||
setNavBarConfig();
|
||||
|
||||
dynIndex = navigationBars.indexWhere((e) => e['id'] == 1);
|
||||
if (dynamicBadgeMode != DynamicBadgeMode.hidden) {
|
||||
if (dynIndex != -1) {
|
||||
|
||||
@@ -28,7 +28,8 @@ class _MediaPageState extends CommonPageState<MediaPage, MediaController>
|
||||
|
||||
@override
|
||||
void listener() {
|
||||
if (_mainController.selectedIndex.value == 0) {
|
||||
if (_mainController.navigationBars[0]['id'] != 2 &&
|
||||
_mainController.selectedIndex.value == 0) {
|
||||
return;
|
||||
}
|
||||
super.listener();
|
||||
|
||||
Reference in New Issue
Block a user