implements #122, urgent hint on linux

This commit is contained in:
Jonas Schwabe
2016-07-12 22:14:32 +02:00
parent 04fe0fd336
commit 028d0ac7f8
3 changed files with 7 additions and 4 deletions

View File

@@ -202,7 +202,7 @@ var SettingsPage = React.createClass({
) : null;
var notifications_row = null;
if (process.platform === 'win32') {
if (process.platform === 'win32' || process.platform === 'linux') {
var notificationSettings = [
{
label: 'Never',

View File

@@ -261,10 +261,13 @@ app.on('ready', function() {
mainWindow.focus();
});
ipcMain.on('notified', function(event, arg) {
if (process.platform === 'win32') {
if (process.platform === 'win32' || process.platform == 'linux') {
if (config.notifications.flashWindow === 2) {
mainWindow.flashFrame(true);
}
}
if (process.platform === 'win32') {
// On Windows 8.1 and Windows 8, a shortcut with a Application User Model ID must be installed to the Start screen.
// In current version, use tray balloon for notification
if (osVersion.isLowerThanOrEqualWindows8_1()) {