We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fa8f72 commit 13e5beeCopy full SHA for 13e5bee
1 file changed
src/composables/useUpdater.ts
@@ -33,11 +33,17 @@ export default function useUpdater() {
33
}
34
35
36
- onMounted(() => {
37
- emit('tauri://update')
+ onMounted(async () => {
+ const update = await check();
38
+ if (update) {
39
+ updateNeeded.value = true
40
+ }
41
- setInterval(() => {
- emit("tauri://update")
42
+ setInterval(async () => {
43
44
45
46
47
}, 5 * 60 * 1000)
48
49
listen('tauri://update-available', function (res) {
0 commit comments