Skip to content

Commit

Permalink
Fix entry|settings menu popup when not necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
chhoumann committed Aug 29, 2021
1 parent 1265abe commit 6848fca
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "quickadd",
"name": "QuickAdd",
"version": "0.4.2",
"version": "0.4.3",
"minAppVersion": "0.12.5",
"description": "Quickly add new pages or content to your vault.",
"author": "Christian B. B. Houmann",
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": "quickadd",
"version": "0.4.2",
"version": "0.4.3",
"description": "Quickly add new pages or content to your vault.",
"main": "main.js",
"scripts": {
Expand Down
8 changes: 4 additions & 4 deletions src/engine/MacroChoiceEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,12 @@ export class MacroChoiceEngine extends QuickAddChoiceEngine {
}

protected async userScriptDelegator(userScript: any) {
if (this.userScriptCommand)
await this.runScriptWithSettings(userScript, this.userScriptCommand)

switch (typeof userScript) {
case "function":
if (this.userScriptCommand)
await this.runScriptWithSettings(userScript, this.userScriptCommand)
else
await this.onExportIsFunction(userScript);
await this.onExportIsFunction(userScript);
break;
case "object":
await this.onExportIsObject(userScript);
Expand Down
2 changes: 1 addition & 1 deletion versions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"0.2.16": "0.12.4",
"0.4.2": "0.12.5"
"0.4.3": "0.12.5"
}

0 comments on commit 6848fca

Please sign in to comment.