(self, event)
| 659 | return None |
| 660 | |
| 661 | def changeEvent(self, event): |
| 662 | # Re-establish this window's context when it becomes the active window: |
| 663 | # project/config and the symbol-metadata dicts are process-global, so the |
| 664 | # active editor must own them (keeps multiple open schematics consistent). |
| 665 | from PySide6.QtCore import QEvent |
| 666 | if event.type() == QEvent.ActivationChange and self.isActiveWindow(): |
| 667 | self._activate_context() |
| 668 | super().changeEvent(event) |
| 669 | |
| 670 | def _activate_context(self) -> None: |
| 671 | project.set_current(self._current_path) |
nothing calls this directly
no test coverage detected