We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cf38cf commit 806367fCopy full SHA for 806367f
main.js
@@ -156,8 +156,16 @@ async function createWindow () {
156
mainWindow.on('blur', () => {
157
mainWindow.webContents.send('blur');
158
});
159
+ let badgeTs = 0;
160
ipcMain.on('update-badge', (event, count) => {
- app.setBadgeCount(count);
161
+ if (Date.now() - badgeTs < 100 && process.platform === 'win32')
162
+ setTimeout(() => {
163
+ app.setBadgeCount(count);
164
+ badgeTs = Date.now();
165
+ }, 100);
166
+ else
167
168
169
170
ipcMain.on('relaunch', () => {
171
app.relaunch();
0 commit comments