mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: rcmd controller
This commit is contained in:
@@ -67,7 +67,7 @@ class HomeController extends GetxController with GetTickerProviderStateMixin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void setTabConfig() async {
|
void setTabConfig() async {
|
||||||
defaultTabs = tabsConfig;
|
defaultTabs = [...tabsConfig];
|
||||||
tabbarSort = settingStorage
|
tabbarSort = settingStorage
|
||||||
.get(SettingBoxKey.tabbarSort,
|
.get(SettingBoxKey.tabbarSort,
|
||||||
defaultValue: ['live', 'rcmd', 'hot', 'rank', 'bangumi'])
|
defaultValue: ['live', 'rcmd', 'hot', 'rank', 'bangumi'])
|
||||||
|
|||||||
@@ -31,10 +31,9 @@ class RcmdPage extends StatefulWidget {
|
|||||||
|
|
||||||
class _RcmdPageState extends State<RcmdPage>
|
class _RcmdPageState extends State<RcmdPage>
|
||||||
with AutomaticKeepAliveClientMixin {
|
with AutomaticKeepAliveClientMixin {
|
||||||
late final PopupController _controller = Get.put(
|
late final PopupController _controller = widget.tabType == TabType.rcmd
|
||||||
widget.tabType == TabType.rcmd ? RcmdController() : LiveController(),
|
? Get.put<RcmdController>(RcmdController())
|
||||||
tag: widget.tabType.name,
|
: Get.put<LiveController>(LiveController());
|
||||||
);
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool get wantKeepAlive => true;
|
bool get wantKeepAlive => true;
|
||||||
|
|||||||
Reference in New Issue
Block a user