mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 19:34:02 +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) {
|
||||
return;
|
||||
}
|
||||
var tab = tabView.getTab(index);
|
||||
tab.enabledChanged.disconnect(updateVisiblity);
|
||||
tabView.removeTab(index);
|
||||
console.log("Updating visibility based on child tab removed");
|
||||
updateVisiblity();
|
||||
|
@ -137,10 +139,7 @@ Windows.Window {
|
|||
}
|
||||
|
||||
console.log("Updating visibility based on child tab added");
|
||||
newTab.enabledChanged.connect(function() {
|
||||
console.log("Updating visibility based on child tab enabled change");
|
||||
updateVisiblity();
|
||||
})
|
||||
newTab.enabledChanged.connect(updateVisiblity)
|
||||
updateVisiblity();
|
||||
return newTab
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue