Notices for events and sync errors handled
This commit is contained in:
parent
a60eade0ae
commit
98a15c0c9e
4 changed files with 33 additions and 9 deletions
5
main.ts
5
main.ts
|
|
@ -1,4 +1,4 @@
|
|||
import { Plugin } from "obsidian";
|
||||
import { Notice, Plugin } from "obsidian";
|
||||
import { ExampleSettingsTab } from "./settings";
|
||||
import { ExampleView, VIEW_TYPE_EXAMPLE} from "./view"
|
||||
|
||||
|
|
@ -14,6 +14,9 @@ export default class ExamplePlugin extends Plugin {
|
|||
settings: ExamplePluginSettings;
|
||||
view: ExampleView;
|
||||
|
||||
displayNotice(message: string){
|
||||
new Notice(message)
|
||||
}
|
||||
async onload() {
|
||||
await this.loadSettings();
|
||||
this.addSettingTab(new ExampleSettingsTab(this.app, this));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue