Skip to content

Commit 0ca6d0f

Browse files
authored
limit error notifications in macos update service (microsoft#182269)
fixes microsoft#182250
1 parent 5860847 commit 0ca6d0f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/vs/platform/update/electron-main/updateService.darwin.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ export class DarwinUpdateService extends AbstractUpdateService {
5050
this.logService.error('UpdateService error:', err);
5151

5252
// only show message when explicitly checking for updates
53-
const shouldShowMessage = this.state.type === StateType.CheckingForUpdates ? this.state.explicit : true;
54-
const message: string | undefined = shouldShowMessage ? err : undefined;
53+
const message = (this.state.type === StateType.CheckingForUpdates && this.state.explicit) ? err : undefined;
5554
this.setState(State.Idle(UpdateType.Archive, message));
5655
}
5756

0 commit comments

Comments
 (0)