mirror of
https://github.com/Fabio286/antares.git
synced 2025-03-25 15:50:13 +01: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) => {
|
||||
mainWindow.setTitle(title);
|
||||
if (mainWindow) mainWindow.setTitle(title);
|
||||
});
|
||||
|
||||
// quit application when all windows are closed
|
||||
|
@ -129,7 +129,7 @@ export default {
|
||||
},
|
||||
tooltipPosition (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`;
|
||||
},
|
||||
getStatusBadge (uid) {
|
||||
|
@ -543,9 +543,9 @@ export default {
|
||||
|
||||
this.isTesting = false;
|
||||
},
|
||||
saveConnection () {
|
||||
async saveConnection () {
|
||||
await this.addConnection(this.connection);
|
||||
this.selectWorkspace(this.connection.uid);
|
||||
return this.addConnection(this.connection);
|
||||
},
|
||||
closeAsking () {
|
||||
this.isTesting = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user