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:
@ -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(() => {
|
||||
|
Reference in New Issue
Block a user