Skip to content

Commit

Permalink
fix: only show check for updates tray menu item
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Feb 2, 2025
1 parent 1c2032c commit 09a082a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion satellite/src/electron.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ trayMenu.append(
}),
)
trayMenu.append(electronUpdater.menuItem)
trayMenu.append(electronUpdater.installMenuItem)
trayMenu.append(
new MenuItem({
label: 'About',
Expand Down
9 changes: 0 additions & 9 deletions satellite/src/electronUpdater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export function isUpdateSupported(): boolean {

export class ElectronUpdater {
readonly menuItem: MenuItem
readonly installMenuItem: MenuItem
#updateNotification: Notification | undefined

constructor() {
Expand All @@ -42,11 +41,6 @@ export class ElectronUpdater {
visible: isUpdateSupported(),
click: () => this.check(true),
})
this.installMenuItem = new MenuItem({
label: 'Install pending update',
visible: false,
click: () => this.installPending(),
})
}

installPending(): void {
Expand All @@ -70,9 +64,6 @@ export class ElectronUpdater {
autoUpdater
.checkForUpdates()
.then((info) => {
this.menuItem.visible = !info
this.installMenuItem.visible = !!info

if (notifyWithDialog) {
if (info) {
dialog
Expand Down

0 comments on commit 09a082a

Please sign in to comment.