Skip to content

Commit

Permalink
fix: Change updates info style.
Browse files Browse the repository at this point in the history
  • Loading branch information
jjaychen1e committed Jan 9, 2022
1 parent 104b6c5 commit f4e448a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/CheckUpdatesUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
})
}
6 changes: 4 additions & 2 deletions src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit f4e448a

Please sign in to comment.