Merge pull request #251 from Razzeee/fix-window-state

Improved window state handling
This commit is contained in:
Yuya Ochiai
2016-08-22 22:39:29 +09:00
4 changed files with 23 additions and 4 deletions

View File

@@ -117,10 +117,16 @@ notification.override({
if (currentWindow.isVisible()) {
currentWindow.focus();
}
else if (currentWindow.isMinimized()) {
currentWindow.restore();
}
else {
currentWindow.show();
}
}
else if (currentWindow.isMinimized()) {
currentWindow.restore();
}
else {
currentWindow.show();
}