aboutsummaryrefslogtreecommitdiff
path: root/src-vue
diff options
context:
space:
mode:
authorRemy Raes <raes.remy@gmail.com>2022-09-24 17:28:19 +0200
committerRemy Raes <raes.remy@gmail.com>2022-09-24 17:28:19 +0200
commitf63550c030237729556be053750a52c033cd5926 (patch)
tree4b353f12b0b94646c06c431fcbc8f2902ac79657 /src-vue
parent9635801759facbfdc3c033f70a64ae4635be19f6 (diff)
downloadFlightCore-f63550c030237729556be053750a52c033cd5926.tar.gz
FlightCore-f63550c030237729556be053750a52c033cd5926.zip
fix: restore window controls
Diffstat (limited to 'src-vue')
-rw-r--r--src-vue/src/App.vue12
1 files changed, 10 insertions, 2 deletions
diff --git a/src-vue/src/App.vue b/src-vue/src/App.vue
index 06499058..239aa256 100644
--- a/src-vue/src/App.vue
+++ b/src-vue/src/App.vue
@@ -12,6 +12,14 @@ export default {
},
mounted: () => {
store.commit('initializeListeners');
+ },
+ methods: {
+ minimize() {
+ appWindow.minimize()
+ },
+ close() {
+ appWindow.close()
+ }
}
}
</script>
@@ -25,8 +33,8 @@ export default {
<el-tab-pane label="Settings">Settings</el-tab-pane>
</el-tabs>
<div id="fc_window__controls">
- <el-button color="white" icon="SemiSelect" @click="appWindow.minimize()" circle />
- <el-button color="white" icon="CloseBold" @click="appWindow.close()" circle />
+ <el-button color="white" icon="SemiSelect" @click="minimize" circle />
+ <el-button color="white" icon="CloseBold" @click="close" circle />
</div>
</template>