Skip to content

Commit f4e448a

Browse files
committed
fix: Change updates info style.
1 parent 104b6c5 commit f4e448a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Diff for: src/CheckUpdatesUtils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export async function checkUpdates() {
99
.then(resJSON => {
1010
const latestVersion = resJSON["tag_name"].replace("v", "");
1111
if (gt(latestVersion, currentVersion)) {
12-
logseq.App.showMsg(`New version ${latestVersion} is available(logseq-plugin-image-uploader).`, "info");
12+
logseq.App.showMsg(`New version ${latestVersion} is available(logseq-plugin-image-uploader).`, "warning");
1313
}
1414
})
1515
}

Diff for: src/main.tsx

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ import { checkUpdates } from "./CheckUpdatesUtils";
33
import { checkAndUploadBlock } from "./ImageUploadUtils";
44

55
async function main() {
6-
checkUpdates();
6+
setTimeout(() => {
7+
checkUpdates();
8+
}, 5000);
79

810
const graphInfo = await logseq.App.getCurrentGraph();
911
const graphPath = graphInfo?.path;
@@ -38,7 +40,7 @@ async function main() {
3840
setTimeout(async () => {
3941
let isEditing = await logseq.Editor.checkEditing();
4042
if (typeof isEditing === "string" && isEditing === uuid) {
41-
// logseq.App.showMsg("Still editing, check it later.", "info");
43+
// logseq.App.showMsg("Still editing, check it later.", "warning");
4244
checkLater();
4345
} else {
4446
// await logseq.Editor.exitEditingMode();

0 commit comments

Comments
 (0)