Fix badge spam: attempt 2 (#3073)

pull/3081/head
David Baker 2017-01-26 12:58:29 +00:00 committed by Richard van der Hoff
parent f29e0bfe6d
commit 7850f7e505
2 changed files with 3 additions and 0 deletions

View File

@ -58,6 +58,7 @@ function platformFriendlyName() {
export default class ElectronPlatform extends VectorBasePlatform {
setNotificationCount(count: number) {
if (this.notificationCount === count) return;
super.setNotificationCount(count);
// this sometimes throws because electron is made of fail:
// https://github.com/electron/electron/issues/7351

View File

@ -60,11 +60,13 @@ export default class WebPlatform extends VectorBasePlatform {
}
setNotificationCount(count: number) {
if (this.notificationCount === count) return;
super.setNotificationCount(count);
this._updateFavicon();
}
setErrorStatus(errorDidOccur: boolean) {
if (this.errorDidOccur === errorDidOccur) return;
super.setErrorStatus(errorDidOccur);
this._updateFavicon();
}