aboutsummaryrefslogtreecommitdiff
path: root/src-vue/src/App.vue
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2023-03-12 15:55:36 +0100
committerGitHub <noreply@github.com>2023-03-12 14:55:36 +0000
commit82739f56b198054acbde53527e9eb39fa14f2602 (patch)
tree8a1601eada3846ae554ec56fb6feede2be792338 /src-vue/src/App.vue
parentac8c02a3860c2b079dc3f3806c3638563ac16d10 (diff)
downloadFlightCore-82739f56b198054acbde53527e9eb39fa14f2602.tar.gz
FlightCore-82739f56b198054acbde53527e9eb39fa14f2602.zip
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
Diffstat (limited to 'src-vue/src/App.vue')
-rw-r--r--src-vue/src/App.vue6
1 files changed, 3 insertions, 3 deletions
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 {
<div class="app-inner">
<div id="fc_bg__container" :style="bgStyle"/>
- <nav id="fc_menu-bar">
+ <nav id="fc_menu-bar" v-if="$route.path !== '/repair'"><!-- Hide menu bar in repair view -->
<!-- Navigation items -->
<el-menu
:default-active="$route.path"