@@ -14,9 +14,6 @@ Release date: TBD
|
|||||||
- Disabled `eval()` function for security improvements.
|
- Disabled `eval()` function for security improvements.
|
||||||
- Invalidate cache before load, to make server upgrades easy
|
- Invalidate cache before load, to make server upgrades easy
|
||||||
|
|
||||||
#### Windows
|
|
||||||
- Update Mattermost icon for desktop notifications in Windows 10.
|
|
||||||
|
|
||||||
#### Linux (Beta)
|
#### Linux (Beta)
|
||||||
- Added an option to make the taskbar icon flash on new messages
|
- Added an option to make the taskbar icon flash on new messages
|
||||||
- Added the badge to count mentions for Unity.
|
- Added the badge to count mentions for Unity.
|
||||||
@@ -25,11 +22,12 @@ Release date: TBD
|
|||||||
- Added an option to toggle the red dot icon for unread messages (default is on).
|
- Added an option to toggle the red dot icon for unread messages (default is on).
|
||||||
|
|
||||||
#### Windows
|
#### Windows
|
||||||
|
- Update Mattermost icon for desktop notifications in Windows 10.
|
||||||
- Added an option to toogle the red dot icon for unread messages (default is on).
|
- Added an option to toogle the red dot icon for unread messages (default is on).
|
||||||
|
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
- Fixed an issue where the maximized state of the app window was lost in some cases.
|
||||||
|
|
||||||
## Release v1.3.0
|
## Release v1.3.0
|
||||||
|
|
||||||
|
@@ -117,10 +117,16 @@ notification.override({
|
|||||||
if (currentWindow.isVisible()) {
|
if (currentWindow.isVisible()) {
|
||||||
currentWindow.focus();
|
currentWindow.focus();
|
||||||
}
|
}
|
||||||
|
else if (currentWindow.isMinimized()) {
|
||||||
|
currentWindow.restore();
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
currentWindow.show();
|
currentWindow.show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (currentWindow.isMinimized()) {
|
||||||
|
currentWindow.restore();
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
currentWindow.show();
|
currentWindow.show();
|
||||||
}
|
}
|
||||||
|
10
src/main.js
10
src/main.js
@@ -242,8 +242,13 @@ app.on('ready', function() {
|
|||||||
|
|
||||||
trayIcon.setToolTip(app.getName());
|
trayIcon.setToolTip(app.getName());
|
||||||
trayIcon.on('click', function() {
|
trayIcon.on('click', function() {
|
||||||
if (!mainWindow.isVisible() || mainWindow.isMinimized()) {
|
if (!mainWindow.isVisible()) {
|
||||||
|
if (mainWindow.isMinimized()) {
|
||||||
|
mainWindow.restore();
|
||||||
|
}
|
||||||
|
else {
|
||||||
mainWindow.show();
|
mainWindow.show();
|
||||||
|
}
|
||||||
mainWindow.focus();
|
mainWindow.focus();
|
||||||
if (process.platform === 'darwin') {
|
if (process.platform === 'darwin') {
|
||||||
app.dock.show();
|
app.dock.show();
|
||||||
@@ -262,7 +267,8 @@ app.on('ready', function() {
|
|||||||
});
|
});
|
||||||
trayIcon.on('balloon-click', function() {
|
trayIcon.on('balloon-click', function() {
|
||||||
if (process.platform === 'win32' || process.platform === 'darwin') {
|
if (process.platform === 'win32' || process.platform === 'darwin') {
|
||||||
mainWindow.show();
|
if (mainWindow.isMinimized()) mainWindow.restore()
|
||||||
|
else mainWindow.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (process.platform === 'darwin') {
|
if (process.platform === 'darwin') {
|
||||||
|
@@ -13,7 +13,12 @@ function createTemplate(mainWindow, config) {
|
|||||||
label: team.name,
|
label: team.name,
|
||||||
accelerator: `CmdOrCtrl+${i + 1}`,
|
accelerator: `CmdOrCtrl+${i + 1}`,
|
||||||
click: (item, focusedWindow) => {
|
click: (item, focusedWindow) => {
|
||||||
mainWindow.show(); // for OS X
|
if (mainWindow.isMinimized()) {
|
||||||
|
mainWindow.restore();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
mainWindow.show();
|
||||||
|
}
|
||||||
mainWindow.webContents.send('switch-tab', i);
|
mainWindow.webContents.send('switch-tab', i);
|
||||||
|
|
||||||
if (process.platform === 'darwin') {
|
if (process.platform === 'darwin') {
|
||||||
|
Reference in New Issue
Block a user