mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
some modifitions (#636)
* opt: MsgUnReadTypeV2 * mod: recoard history in anonymity mode
This commit is contained in:
committed by
GitHub
parent
82d615fbbf
commit
af289c533f
@@ -112,11 +112,11 @@ class GStorage {
|
||||
defaultValue: DynamicBadgeMode.number.index,
|
||||
)];
|
||||
|
||||
static List<MsgUnReadType> get msgUnReadTypeV2 => List<int>.from(setting.get(
|
||||
SettingBoxKey.msgUnReadTypeV2,
|
||||
defaultValue:
|
||||
List<int>.generate(MsgUnReadType.values.length, (index) => index),
|
||||
)).map((index) => MsgUnReadType.values[index]).toList();
|
||||
static Set<MsgUnReadType> get msgUnReadTypeV2 =>
|
||||
(setting.get(SettingBoxKey.msgUnReadTypeV2) as List?)
|
||||
?.map((index) => MsgUnReadType.values[index])
|
||||
.toSet() ??
|
||||
MsgUnReadType.values.toSet();
|
||||
|
||||
static int get defaultHomePage =>
|
||||
setting.get(SettingBoxKey.defaultHomePage, defaultValue: 0);
|
||||
|
||||
Reference in New Issue
Block a user