From 494126080579f49f621d10c4e05a8a12a470dd76 Mon Sep 17 00:00:00 2001 From: "Adrian O.V" <83074853+CodexAdrian@users.noreply.github.com> Date: Fri, 21 Jul 2023 17:59:34 -0400 Subject: [PATCH] Fixes and enhancements (#350) * Fixes #147 * Fixes #149 and #151 * Fixed #153 * Fixes #154 * Update ContextMenu.vue * Revert temp change to test windows * More bug fixes * Fixed modpack install bug * Fixes #314 * Lint * Fix #261 --- theseus_gui/src/App.vue | 54 +++++++++---------- .../src/assets/stylesheets/global.scss | 7 --- theseus_gui/src/components/ui/ContextMenu.vue | 3 ++ .../src/components/ui/InstallConfirmModal.vue | 14 +++-- .../src/components/ui/RunningAppBar.vue | 27 ++++++---- theseus_gui/src/pages/Settings.vue | 19 ------- theseus_gui/src/pages/instance/Logs.vue | 6 +-- theseus_gui/src/pages/instance/Mods.vue | 49 ++++++++++++----- theseus_gui/src/pages/project/Index.vue | 4 +- theseus_gui/src/store/theme.js | 1 - 10 files changed, 99 insertions(+), 85 deletions(-) diff --git a/theseus_gui/src/App.vue b/theseus_gui/src/App.vue index 5c0ded2ff..88cfc29d8 100644 --- a/theseus_gui/src/App.vue +++ b/theseus_gui/src/App.vue @@ -29,7 +29,7 @@ import mixpanel from 'mixpanel-browser' import { saveWindowState, StateFlags } from 'tauri-plugin-window-state-api' import OnboardingModal from '@/components/OnboardingModal.vue' import { getVersion } from '@tauri-apps/api/app' -import { window } from '@tauri-apps/api' +import { window as TauriWindow } from '@tauri-apps/api' import { TauriEvent } from '@tauri-apps/api/event' import { await_sync, check_safe_loading_bars_complete } from './helpers/state' import { confirm } from '@tauri-apps/api/dialog' @@ -93,10 +93,10 @@ const handleClose = async () => { } } await await_sync() - window.getCurrent().close() + await TauriWindow.getCurrent().close() } -window.getCurrent().listen(TauriEvent.WINDOW_CLOSE_REQUESTED, async () => { +TauriWindow.getCurrent().listen(TauriEvent.WINDOW_CLOSE_REQUESTED, async () => { await handleClose() }) @@ -136,8 +136,8 @@ document.querySelector('body').addEventListener('click', function (e) { path: target.href, }, }) - e.preventDefault() } + e.preventDefault() break } target = target.parentElement @@ -153,24 +153,13 @@ const accounts = ref(null) -