web: removed legacy option

This commit is contained in:
Maxim Devaev 2025-05-15 17:04:46 +03:00
parent ed447a7cc2
commit 3f309077f8

View File

@ -346,7 +346,8 @@ function __WindowManager() {
return promise; return promise;
}; };
self.showWindow = function(el_win, activate=true, center=false) { self.showWindow = function(el_win) {
let center = false;
let showed = false; let showed = false;
if (!self.isWindowVisible(el_win)) { if (!self.isWindowVisible(el_win)) {
center = true; center = true;
@ -354,9 +355,7 @@ function __WindowManager() {
} }
__organizeWindow(el_win, center); __organizeWindow(el_win, center);
el_win.style.visibility = "visible"; el_win.style.visibility = "visible";
if (activate) { __activateWindow(el_win);
__activateWindow(el_win);
}
if (el_win.show_hook) { if (el_win.show_hook) {
if (showed) { if (showed) {
el_win.show_hook(); el_win.show_hook();