feat: add auto application restart after migration successful fix attempt

This commit is contained in:
2025-07-11 02:38:23 +03:00
parent b71e4cc6f9
commit 4e69cd8bde
3 changed files with 8 additions and 2 deletions

View File

@@ -19,6 +19,7 @@ import { install } from '@/helpers/profile.js'
import { trackEvent } from '@/helpers/analytics'
import ModalWrapper from '@/components/ui/modal/ModalWrapper.vue'
import { applyMigrationFix } from '@/helpers/utils.js'
import { restartApp } from '@/helpers/utils.js'
const errorModal = ref()
const error = ref()
@@ -168,6 +169,11 @@ async function onApplyMigrationFix(eol) {
migrationFixSuccess.value = false
} finally {
migrationFixCallbackModel.value?.show?.()
if (migrationFixSuccess.value === true) {
setTimeout(async () => {
await restartApp()
}, 3000)
}
}
}