Rework how single frame of some auxiliary window is opened

This commit is contained in:
DarkPhoenix
2019-08-12 00:48:18 +03:00
parent 34a6fdc07e
commit 8a3dc2f3dc
3 changed files with 17 additions and 17 deletions

View File

@@ -1391,7 +1391,7 @@ class PFNotebookPagePreview(wx.Frame):
if self.transp < 0:
self.transp = 0
self.timer.Stop()
wx.Frame.Show(self, False)
super().Show(False)
self.Destroy()
return
self.SetTransparent(self.transp)
@@ -1407,7 +1407,7 @@ class PFNotebookPagePreview(wx.Frame):
def Show(self, showWnd=True):
if showWnd:
wx.Frame.Show(self, showWnd)
super().Show(showWnd)
self.RaiseParent()
self.direction = 1
self.timer.Start(10)