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:
KoishiMoe
2026-01-09 11:35:47 +08:00
committed by GitHub
parent dbc11c36df
commit 836ab311d6
4 changed files with 30 additions and 9 deletions

View File

@@ -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) {