From 82739f56b198054acbde53527e9eb39fa14f2602 Mon Sep 17 00:00:00 2001 From: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> Date: Sun, 12 Mar 2023 15:55:36 +0100 Subject: feat: Allow opening a window with various repair features (#129) * feat: Initial code for spawning repair window * refactor: Move disable all but core mods button to repair window * refactor: Rename function * refactor: Move button location Still in DeveloperView for now, will be moved to settings page later * feat: Add info banner * feat: Set repair window title * fix: Stop thread crash on duplicate window open Instead of calling an unwrap, handle failure to create window which is usually caused by spawning a second repair window although one already exists. * fix: Re-add accidentally removed lines from merge * fix: Set top padding to zero px As there's no menu bar in this view * feat: Close all windows when close bttn is clicked --- src-vue/src/App.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src-vue/src/App.vue') diff --git a/src-vue/src/App.vue b/src-vue/src/App.vue index c28919e1..f740bd2f 100644 --- a/src-vue/src/App.vue +++ b/src-vue/src/App.vue @@ -6,7 +6,7 @@ import ModsView from './views/ModsView.vue'; import SettingsView from './views/SettingsView.vue'; import { appWindow } from '@tauri-apps/api/window'; import { store } from './plugins/store'; -import { window as tauriWindow } from "@tauri-apps/api"; +import { invoke, window as tauriWindow } from "@tauri-apps/api"; export default { components: { @@ -30,7 +30,7 @@ export default { appWindow.minimize() }, close() { - appWindow.close() + invoke("close_application"); } }, computed: { @@ -47,7 +47,7 @@ export default {
-