dtkcore icon indicating copy to clipboard operation
dtkcore copied to clipboard

DConfig接口支持异步

Open 18202781743 opened this issue 2 years ago • 0 comments

DConfig对获取的值做缓存处理,不阻塞GUI调用者

  • [ ] 调用者获取的是缓存值,当值修改后,触发信号通知调用方,实现方式类似dtkdeclarative内的DConfigWrapper处理,
  • [ ] 当DConfig支持异步接口后,移除掉dtkdeclarative内的DConfigWrapper相同功能,
  • [ ] DConfig的实现还是要做成允许在一个专有线程中调用DBus或文件读写接口,否则它有可能会阻塞当前线程

18202781743 avatar Sep 15 '23 02:09 18202781743