update the plugin setting
(self, value: dict)
| 95 | return data |
| 96 | |
| 97 | def save_setting(self, value: dict) -> None: |
| 98 | """update the plugin setting""" |
| 99 | with open(self.setting_file, 'w', encoding='utf-8') as f: |
| 100 | json.dump(value, f, ensure_ascii=False) |
| 101 | self.data = value |
| 102 | |
| 103 | def __setitem__(self, key: str, value: Any) -> None: |
| 104 | """triggered by `data[key] = value`""" |
no outgoing calls