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

feat: dynamic app window title

This commit is contained in:
2022-06-08 13:24:14 +02:00
parent 85cec05f70
commit 00242697a1
3 changed files with 12 additions and 16 deletions

View File

@ -1,5 +1,9 @@
<template>
<div id="titlebar" v-if="!isLinux" @dblclick="toggleFullScreen">
<div
v-if="!isLinux"
id="titlebar"
@dblclick="toggleFullScreen"
>
<div class="titlebar-resizer" />
<div class="titlebar-elements">
<img
@ -98,6 +102,11 @@ export default {
return [connectionName, ...breadcrumbs].join(' • ');
}
},
watch: {
windowTitle: function (val) {
ipcRenderer.send('change-window-title', val);
}
},
created () {
window.addEventListener('resize', this.onResize);
},