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 {
|
||||
defaultTabs = tabsConfig;
|
||||
defaultTabs = [...tabsConfig];
|
||||
tabbarSort = settingStorage
|
||||
.get(SettingBoxKey.tabbarSort,
|
||||
defaultValue: ['live', 'rcmd', 'hot', 'rank', 'bangumi'])
|
||||
|
||||
@@ -31,10 +31,9 @@ class RcmdPage extends StatefulWidget {
|
||||
|
||||
class _RcmdPageState extends State<RcmdPage>
|
||||
with AutomaticKeepAliveClientMixin {
|
||||
late final PopupController _controller = Get.put(
|
||||
widget.tabType == TabType.rcmd ? RcmdController() : LiveController(),
|
||||
tag: widget.tabType.name,
|
||||
);
|
||||
late final PopupController _controller = widget.tabType == TabType.rcmd
|
||||
? Get.put<RcmdController>(RcmdController())
|
||||
: Get.put<LiveController>(LiveController());
|
||||
|
||||
@override
|
||||
bool get wantKeepAlive => true;
|
||||
|
||||
Reference in New Issue
Block a user