mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-22 10:34:30 +08:00
feat(setting): 添加设置数据存储功能
- 在 SettingsModel 中添加了数据存储逻辑 - 实现了应用器数据的自动注册机制 - 确保设置数据与应用器类型的正确关联 - 优化了设置模型的数据管理流程 - [release ci]
This commit is contained in:
parent
b2e8ed9787
commit
f226a355b2
@ -67,6 +67,7 @@ public class SettingsModel<TRepository>(IDataLocationProvider? locationProvider,
|
|||||||
where T : class, IResetApplyAbleSettings
|
where T : class, IResetApplyAbleSettings
|
||||||
{
|
{
|
||||||
_applicators[typeof(T)] = applicator;
|
_applicators[typeof(T)] = applicator;
|
||||||
|
_data[typeof(T)] = applicator.Data;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user