mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: 专栏评论展示跟随设置
This commit is contained in:
@@ -22,9 +22,9 @@ class HtmlRenderController extends GetxController {
|
||||
RxInt acount = 0.obs;
|
||||
final ScrollController scrollController = ScrollController();
|
||||
|
||||
ReplySortType _sortType = ReplySortType.time;
|
||||
RxString sortTypeTitle = ReplySortType.time.titles.obs;
|
||||
RxString sortTypeLabel = ReplySortType.time.labels.obs;
|
||||
late ReplySortType _sortType;
|
||||
late RxString sortTypeTitle;
|
||||
late RxString sortTypeLabel;
|
||||
Box setting = GStrorage.setting;
|
||||
|
||||
@override
|
||||
@@ -33,6 +33,15 @@ class HtmlRenderController extends GetxController {
|
||||
id = Get.parameters['id']!;
|
||||
dynamicType = Get.parameters['dynamicType']!;
|
||||
type = dynamicType == 'picture' ? 11 : 12;
|
||||
int defaultReplySortIndex =
|
||||
setting.get(SettingBoxKey.replySortType, defaultValue: 0) as int;
|
||||
if (defaultReplySortIndex == 2) {
|
||||
setting.put(SettingBoxKey.replySortType, 0);
|
||||
defaultReplySortIndex = 0;
|
||||
}
|
||||
_sortType = ReplySortType.values[defaultReplySortIndex];
|
||||
sortTypeLabel = _sortType.labels.obs;
|
||||
sortTypeTitle = _sortType.titles.obs;
|
||||
}
|
||||
|
||||
// 请求动态内容
|
||||
|
||||
Reference in New Issue
Block a user