mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
electron-52: bring into to front for previously minimzed win (#77)
This commit is contained in:
parent
4bcf134ca8
commit
19afba5928
@ -323,9 +323,12 @@ function activate(windowName) {
|
||||
let keys = Object.keys(windows);
|
||||
for(let i = 0, len = keys.length; i < len; i++) {
|
||||
let window = windows[keys[i]];
|
||||
if (window && !window.isDestroyed() &&
|
||||
window.winName === windowName) {
|
||||
window.show();
|
||||
if (window && !window.isDestroyed() && window.winName === windowName) {
|
||||
if (window.isMinimized()) {
|
||||
window.restore();
|
||||
} else {
|
||||
window.show();
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user