Controller is only used when creating a new window

This commit is contained in:
Roy Nieterau 2022-02-23 11:29:18 +01:00
parent 4d44a374ae
commit a7f15cd21b

View file

@ -90,9 +90,8 @@ def show(parent=None):
install_fonts()
install_translator(app)
ctrl = control.Controller()
if self._window is None:
ctrl = control.Controller()
self._window = window.Window(ctrl, parent)
self._window.destroyed.connect(on_destroyed)