Remove all calls to flashFrame()
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
/* global Signal:false */
|
/* global Signal:false */
|
||||||
/* global Backbone: false */
|
/* global Backbone: false */
|
||||||
|
|
||||||
/* global drawAttention: false */
|
|
||||||
/* global i18n: false */
|
/* global i18n: false */
|
||||||
/* global isFocused: false */
|
/* global isFocused: false */
|
||||||
/* global Signal: false */
|
/* global Signal: false */
|
||||||
@@ -136,8 +135,6 @@
|
|||||||
message = i18n('newMessage');
|
message = i18n('newMessage');
|
||||||
}
|
}
|
||||||
|
|
||||||
drawAttention();
|
|
||||||
|
|
||||||
this.lastNotification = new Notification(title, {
|
this.lastNotification = new Notification(title, {
|
||||||
body: window.platform === 'linux' ? filter(message) : message,
|
body: window.platform === 'linux' ? filter(message) : message,
|
||||||
icon: iconUrl,
|
icon: iconUrl,
|
||||||
|
14
main.js
14
main.js
@@ -313,10 +313,6 @@ function createWindow() {
|
|||||||
mainWindow.on('resize', debouncedCaptureStats);
|
mainWindow.on('resize', debouncedCaptureStats);
|
||||||
mainWindow.on('move', debouncedCaptureStats);
|
mainWindow.on('move', debouncedCaptureStats);
|
||||||
|
|
||||||
mainWindow.on('focus', () => {
|
|
||||||
mainWindow.flashFrame(false);
|
|
||||||
});
|
|
||||||
|
|
||||||
// Ingested in preload.js via a sendSync call
|
// Ingested in preload.js via a sendSync call
|
||||||
ipc.on('locale-data', event => {
|
ipc.on('locale-data', event => {
|
||||||
// eslint-disable-next-line no-param-reassign
|
// eslint-disable-next-line no-param-reassign
|
||||||
@@ -894,16 +890,6 @@ ipc.on('add-setup-menu-items', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
ipc.on('draw-attention', () => {
|
|
||||||
if (process.platform === 'darwin') {
|
|
||||||
app.dock.bounce();
|
|
||||||
} else if (process.platform === 'win32') {
|
|
||||||
mainWindow.flashFrame(true);
|
|
||||||
} else if (process.platform === 'linux') {
|
|
||||||
mainWindow.flashFrame(true);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
ipc.on('restart', () => {
|
ipc.on('restart', () => {
|
||||||
app.relaunch();
|
app.relaunch();
|
||||||
app.quit();
|
app.quit();
|
||||||
|
@@ -90,10 +90,6 @@ window.open = () => null;
|
|||||||
// eslint-disable-next-line no-eval, no-multi-assign
|
// eslint-disable-next-line no-eval, no-multi-assign
|
||||||
window.eval = global.eval = () => null;
|
window.eval = global.eval = () => null;
|
||||||
|
|
||||||
window.drawAttention = () => {
|
|
||||||
window.log.info('draw attention');
|
|
||||||
ipc.send('draw-attention');
|
|
||||||
};
|
|
||||||
window.showWindow = () => {
|
window.showWindow = () => {
|
||||||
window.log.info('show window');
|
window.log.info('show window');
|
||||||
ipc.send('show-window');
|
ipc.send('show-window');
|
||||||
|
Reference in New Issue
Block a user