diff --git a/apps/app-frontend/src/App.vue b/apps/app-frontend/src/App.vue index 60d1f8fb..c837744c 100644 --- a/apps/app-frontend/src/App.vue +++ b/apps/app-frontend/src/App.vue @@ -42,7 +42,7 @@ import ModrinthLoadingIndicator from '@/components/LoadingIndicatorBar.vue' import { handleError, useNotifications } from '@/store/notifications.js' import { command_listener, warning_listener } from '@/helpers/events.js' import { type } from '@tauri-apps/plugin-os' -import { getOS, isDev, restartApp } from '@/helpers/utils.js' +import { getOS, isDev } from '@/helpers/utils.js' import { debugAnalytics, initAnalytics, optOutAnalytics, trackEvent } from '@/helpers/analytics' import { getCurrentWindow } from '@tauri-apps/api/window' import { getVersion } from '@tauri-apps/api/app' diff --git a/apps/app-frontend/src/components/ui/ErrorModal.vue b/apps/app-frontend/src/components/ui/ErrorModal.vue index 37c53183..808a101e 100644 --- a/apps/app-frontend/src/components/ui/ErrorModal.vue +++ b/apps/app-frontend/src/components/ui/ErrorModal.vue @@ -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) + } } } diff --git a/apps/app/src/main.rs b/apps/app/src/main.rs index dc3ee39e..94427776 100644 --- a/apps/app/src/main.rs +++ b/apps/app/src/main.rs @@ -157,7 +157,7 @@ fn main() { */ let _log_guard = theseus::start_logger(); - tracing::info!("Initialized tracing subscriber. Loading Modrinth App!"); + tracing::info!("Initialized tracing subscriber. Loading AstralRinth App!"); let mut builder = tauri::Builder::default();