Propagate record modified to parent screens
It is needed to reach the top window and update the button sensitivity. Closes #13798
This commit is contained in:
1 parent
f42f4eba6e
commit
d25d05bb4b
2 files changed
+8
No files matched your search
@@ -1250,6 +1250,11 @@
|
||||
window_.record_modified();
|
||||
}
|
||||
}
|
||||
if (this.group.parent) {
|
||||
for (let screen of this.group.parent.group.screens) {
|
||||
screen.record_modified(display);
|
||||
}
|
||||
}
|
||||
if (display) {
|
||||
return this.display();
|
||||
}
|
||||
|
||||
@@ -446,6 +446,9 @@ class Screen:
|
||||
for window in self.windows:
|
||||
if hasattr(window, 'record_modified'):
|
||||
window.record_modified()
|
||||
if self.parent:
|
||||
for screen in self.parent.group.screens:
|
||||
screen.record_modified(display=display)
|
||||
if display:
|
||||
self.display()
|
||||
|
||||
|
||||
Reference in new issue
Block a user