diff --git a/src/CheckUpdatesUtils.ts b/src/CheckUpdatesUtils.ts index cfa2fa7..87acbce 100644 --- a/src/CheckUpdatesUtils.ts +++ b/src/CheckUpdatesUtils.ts @@ -9,7 +9,7 @@ export async function checkUpdates() { .then(resJSON => { const latestVersion = resJSON["tag_name"].replace("v", ""); if (gt(latestVersion, currentVersion)) { - logseq.App.showMsg(`New version ${latestVersion} is available(logseq-plugin-image-uploader).`, "info"); + logseq.App.showMsg(`New version ${latestVersion} is available(logseq-plugin-image-uploader).`, "warning"); } }) } \ No newline at end of file diff --git a/src/main.tsx b/src/main.tsx index c86a2e7..c3a4dd8 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -3,7 +3,9 @@ import { checkUpdates } from "./CheckUpdatesUtils"; import { checkAndUploadBlock } from "./ImageUploadUtils"; async function main() { - checkUpdates(); + setTimeout(() => { + checkUpdates(); + }, 5000); const graphInfo = await logseq.App.getCurrentGraph(); const graphPath = graphInfo?.path; @@ -38,7 +40,7 @@ async function main() { setTimeout(async () => { let isEditing = await logseq.Editor.checkEditing(); if (typeof isEditing === "string" && isEditing === uuid) { - // logseq.App.showMsg("Still editing, check it later.", "info"); + // logseq.App.showMsg("Still editing, check it later.", "warning"); checkLater(); } else { // await logseq.Editor.exitEditingMode();