Skip to content

Commit

Permalink
Moved Auto Create Event Note #117
Browse files Browse the repository at this point in the history
  • Loading branch information
YukiGasai committed May 2, 2023
1 parent cb6820f commit dcf6971
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "google-calendar",
"name": "Google Calendar",
"version": "1.9.12",
"version": "1.9.13",
"minAppVersion": "0.12.0",
"description": "Interact with your Google Calendar from Inside Obsidian",
"author": "YukiGasai",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "google-calendar",
"version": "1.9.12",
"version": "1.9.13",
"description": "Interact with your Google Calendar from Inside Obsidian",
"main": "main.js",
"scripts": {
Expand Down
8 changes: 5 additions & 3 deletions src/GoogleCalendarPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export default class GoogleCalendarPlugin extends Plugin {
return leaf
};

onLayoutReady = (): void => {
onLayoutReady = async (): Promise<void> => {
checkForNewDailyNotes(this);
checkForNewWeeklyNotes(this);
//Get the template plugin to run their commands
Expand All @@ -177,15 +177,17 @@ export default class GoogleCalendarPlugin extends Plugin {
if (templaterPlugin && templaterPlugin._loaded) {
this.templaterPlugin = templaterPlugin;
}


await checkForEventNotes(this);

}

async onload(): Promise<void> {

GoogleCalendarPlugin.instance = this;
this.api = new GoogleCalendarPluginApi().make();
await this.loadSettings();
await checkForEventNotes(this);


this.app.workspace.onLayoutReady(this.onLayoutReady);

Expand Down

0 comments on commit dcf6971

Please sign in to comment.