diff --git a/apps/app-frontend/src/App.vue b/apps/app-frontend/src/App.vue index a8dd1cd80..c837744c9 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' @@ -72,6 +72,9 @@ import QuickInstanceSwitcher from '@/components/ui/QuickInstanceSwitcher.vue' import { get_available_capes, get_available_skins } from './helpers/skins' import { generateSkinPreviews } from './helpers/rendering/batch-skin-renderer' +// [AR] Feature +import { getRemote, updateState } from '@/helpers/update.js' + const themeStore = useTheming() const news = ref([]) @@ -99,6 +102,7 @@ const isMaximized = ref(false) onMounted(async () => { await useCheckDisableMouseover() + await getRemote(false) // [AR] Check for updates document.querySelector('body').addEventListener('click', handleClick) document.querySelector('body').addEventListener('auxclick', handleAuxClick) @@ -465,12 +469,20 @@ function handleAuxClick(e) {
- + + + + +@import '../../../packages/assets/styles/neon-icon.scss'; +@import '../../../packages/assets/styles/neon-text.scss'; + .window-controls { z-index: 20; display: none; diff --git a/apps/app-frontend/src/components/ui/ErrorModal.vue b/apps/app-frontend/src/components/ui/ErrorModal.vue index 7c98162e9..808a101e9 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) + } } } @@ -321,12 +327,12 @@ async function onApplyMigrationFix(eol) { - + Get AstralRinth support - + Checkout latest releases @@ -334,7 +340,7 @@ async function onApplyMigrationFix(eol) {