Rework how single windows are opened

This commit is contained in:
DarkPhoenix
2019-08-12 01:11:44 +03:00
parent 8a3dc2f3dc
commit 1e35eaf62a
6 changed files with 23 additions and 23 deletions

View File

@@ -45,6 +45,7 @@ class AuxiliaryFrame(wx.Frame):
@classmethod
def openOne(cls, parent):
"""If window is open and alive - raise it, open otherwise"""
if not cls._instance:
frame = cls(parent)
cls._instance = frame