diff --git a/app/menus/index.js b/app/menus/index.js index 59bee6db..ac108a2a 100644 --- a/app/menus/index.js +++ b/app/menus/index.js @@ -120,7 +120,7 @@ class Menus { this.initializeEventHandlers(); - this.tray = new Tray(this.window, appMenu.submenu, this.iconPath); + this.tray = new Tray(this.window, appMenu.submenu, this.iconPath, this.config); this.spellCheckProvider = new SpellCheckProvider(this.window, this.logger); } diff --git a/app/menus/tray.js b/app/menus/tray.js index 53d2686a..521da333 100644 --- a/app/menus/tray.js +++ b/app/menus/tray.js @@ -1,16 +1,17 @@ const { Tray, Menu, ipcMain, nativeImage } = require('electron'); class ApplicationTray { - constructor(window, appMenu, iconPath) { + constructor(window, appMenu, iconPath, config) { this.window = window; this.iconPath = iconPath; this.appMenu = appMenu; + this.config = config; this.addTray(); } addTray() { this.tray = new Tray(this.iconPath); - this.tray.setToolTip('Microsoft Teams'); + this.tray.setToolTip(this.config.appTitle); this.tray.on('click', () => this.showAndFocusWindow()); this.tray.setContextMenu(Menu.buildFromTemplate(this.appMenu)); diff --git a/package.json b/package.json index 5eb918cb..7a7dc1aa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "teams-for-linux", - "version": "1.4.3", + "version": "1.4.4", "main": "app/index.js", "description": "Unofficial client for Microsoft Teams for Linux", "homepage": "https://github.com/IsmaelMartinez/teams-for-linux", @@ -49,7 +49,7 @@ }, "devDependencies": { "@electron/fuses": "^1.7.0", - "electron": "28.0.0", + "electron": "28.1.3", "electron-builder": "24.9.1", "eslint": "8.56.0", "yarn": "1.22.21" diff --git a/yarn.lock b/yarn.lock index ba4c9ce9..8614dbfa 100644 --- a/yarn.lock +++ b/yarn.lock @@ -851,10 +851,10 @@ electron-window-state@5.0.3: jsonfile "^4.0.0" mkdirp "^0.5.1" -electron@28.0.0: - version "28.0.0" - resolved "https://registry.yarnpkg.com/electron/-/electron-28.0.0.tgz#21e5590c967125a3c1ec6b0d8d923baf9eb6fd72" - integrity sha512-eDhnCFBvG0PGFVEpNIEdBvyuGUBsFdlokd+CtuCe2ER3P+17qxaRfWRxMmksCOKgDHb5Wif5UxqOkZSlA4snlw== +electron@28.1.3: + version "28.1.3" + resolved "https://registry.yarnpkg.com/electron/-/electron-28.1.3.tgz#38382a177af2fa6026b02eb4e4ebde067fb30154" + integrity sha512-NSFyTo6SndTPXzU18XRePv4LnjmuM9rF5GMKta1/kPmi02ISoSRonnD7wUlWXD2x53XyJ6d/TbSVesMW6sXkEQ== dependencies: "@electron/get" "^2.0.0" "@types/node" "^18.11.18"