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:
@ -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);
|
||||
},
|
||||
|
Reference in New Issue
Block a user