mirror of
https://github.com/Fabio286/antares.git
synced 2025-04-12 17:31:11 +02:00
fix: exception on app start setting window title
This commit is contained in:
parent
00242697a1
commit
5b33419b64
@ -92,7 +92,7 @@ else {
|
|||||||
});
|
});
|
||||||
|
|
||||||
ipcMain.on('change-window-title', (event, title: string) => {
|
ipcMain.on('change-window-title', (event, title: string) => {
|
||||||
mainWindow.setTitle(title);
|
if (mainWindow) mainWindow.setTitle(title);
|
||||||
});
|
});
|
||||||
|
|
||||||
// quit application when all windows are closed
|
// quit application when all windows are closed
|
||||||
|
@ -129,7 +129,7 @@ export default {
|
|||||||
},
|
},
|
||||||
tooltipPosition (e) {
|
tooltipPosition (e) {
|
||||||
const el = e.target ? e.target : e;
|
const el = e.target ? e.target : e;
|
||||||
const fromTop = window.pageYOffset + el.getBoundingClientRect().top - (el.offsetHeight / 4);
|
const fromTop = window.scrollY + el.getBoundingClientRect().top - (el.offsetHeight / 4);
|
||||||
el.querySelector('.ex-tooltip-content').style.top = `${fromTop}px`;
|
el.querySelector('.ex-tooltip-content').style.top = `${fromTop}px`;
|
||||||
},
|
},
|
||||||
getStatusBadge (uid) {
|
getStatusBadge (uid) {
|
||||||
|
@ -543,9 +543,9 @@ export default {
|
|||||||
|
|
||||||
this.isTesting = false;
|
this.isTesting = false;
|
||||||
},
|
},
|
||||||
saveConnection () {
|
async saveConnection () {
|
||||||
|
await this.addConnection(this.connection);
|
||||||
this.selectWorkspace(this.connection.uid);
|
this.selectWorkspace(this.connection.uid);
|
||||||
return this.addConnection(this.connection);
|
|
||||||
},
|
},
|
||||||
closeAsking () {
|
closeAsking () {
|
||||||
this.isTesting = false;
|
this.isTesting = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user