mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-23 04:00:28 +08:00
feat: add option to turn off dynamic interactions (#1798)
* add option to turn off dynamic interactions * update Signed-off-by: dom <githubaccount56556@proton.me> --------- Co-authored-by: dom <githubaccount56556@proton.me>
This commit is contained in:
@@ -170,6 +170,9 @@ class ItemModulesModel {
|
||||
ModuleBlocked? moduleBlocked;
|
||||
ModuleFold? moduleFold;
|
||||
|
||||
static bool showArgueMsg = Pref.showArgueMsg;
|
||||
static bool showDynInteraction = Pref.showDynInteraction;
|
||||
|
||||
ItemModulesModel.fromJson(Map<String, dynamic> json) {
|
||||
moduleAuthor = json['module_author'] != null
|
||||
? ModuleAuthorModel.fromJson(json['module_author'])
|
||||
@@ -186,12 +189,16 @@ class ItemModulesModel {
|
||||
moduleFold = json['module_fold'] != null
|
||||
? ModuleFold.fromJson(json['module_fold'])
|
||||
: null;
|
||||
moduleInteraction = json['module_interaction'] != null
|
||||
? ModuleInteraction.fromJson(json['module_interaction'])
|
||||
: null;
|
||||
moduleDispute = json['module_dispute'] != null
|
||||
? ModuleDispute.fromJson(json['module_dispute'])
|
||||
: null;
|
||||
if (showDynInteraction) {
|
||||
moduleInteraction = json['module_interaction'] != null
|
||||
? ModuleInteraction.fromJson(json['module_interaction'])
|
||||
: null;
|
||||
}
|
||||
if (showArgueMsg) {
|
||||
moduleDispute = json['module_dispute'] != null
|
||||
? ModuleDispute.fromJson(json['module_dispute'])
|
||||
: null;
|
||||
}
|
||||
}
|
||||
|
||||
ItemModulesModel.fromOpusJson(List json) {
|
||||
|
||||
Reference in New Issue
Block a user