1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-06-05 21:59:22 +02:00

refactor: minor improvements

This commit is contained in:
2022-06-27 18:28:04 +02:00
parent e42c424a13
commit 822af44a47
4 changed files with 16 additions and 4 deletions

View File

@ -36,12 +36,13 @@
</template>
<script setup lang="ts">
import { computed, onUnmounted, ref } from 'vue';
import { computed, onUnmounted, ref, watch } from 'vue';
import { storeToRefs } from 'pinia';
import { getCurrentWindow } from '@electron/remote';
import { useConnectionsStore } from '@/stores/connections';
import { useWorkspacesStore } from '@/stores/workspaces';
import { useI18n } from 'vue-i18n';
import { ipcRenderer } from 'electron';
const { t } = useI18n();
@ -90,6 +91,10 @@ const onResize = () => {
isMaximized.value = w.value.isMaximized();
};
watch(windowTitle, (val) => {
ipcRenderer.send('change-window-title', val);
});
window.addEventListener('resize', onResize);
onUnmounted(() => {