add rewards panels and change styles

This commit is contained in:
kkzzhizhou 2021-11-18 14:16:20 +08:00
parent ffa79454a0
commit bc97bcfc3f
8 changed files with 163 additions and 76 deletions

View file

@ -15,6 +15,7 @@ export default class HabiticaSync extends Plugin {
view: HabiticaSyncView;
async onload() {
console.log("正在加载habitica-sync")
await this.loadSettings();
this.addSettingTab(new HabiticaSyncSettingsTab(this.app, this));
this.registerView(
@ -40,7 +41,7 @@ export default class HabiticaSync extends Plugin {
await this.saveData(this.settings);
}
async onunload() {
await this.view.onClose();
// await this.view.onClose();
this.app.workspace
.getLeavesOfType(VIEW_TYPE)