mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 18:41:10 +02:00
Fix tool window breaking when visible while edit.js reloads
This commit is contained in:
parent
9a8d56da77
commit
fbee221966
1 changed files with 3 additions and 4 deletions
|
@ -103,6 +103,8 @@ Windows.Window {
|
||||||
if (index < 0) {
|
if (index < 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
var tab = tabView.getTab(index);
|
||||||
|
tab.enabledChanged.disconnect(updateVisiblity);
|
||||||
tabView.removeTab(index);
|
tabView.removeTab(index);
|
||||||
console.log("Updating visibility based on child tab removed");
|
console.log("Updating visibility based on child tab removed");
|
||||||
updateVisiblity();
|
updateVisiblity();
|
||||||
|
@ -137,10 +139,7 @@ Windows.Window {
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log("Updating visibility based on child tab added");
|
console.log("Updating visibility based on child tab added");
|
||||||
newTab.enabledChanged.connect(function() {
|
newTab.enabledChanged.connect(updateVisiblity)
|
||||||
console.log("Updating visibility based on child tab enabled change");
|
|
||||||
updateVisiblity();
|
|
||||||
})
|
|
||||||
updateVisiblity();
|
updateVisiblity();
|
||||||
return newTab
|
return newTab
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue