Revert 45d2190f68
Closing application when no tabs are open is annoying. Was worth testing, but definitely not the desired behavior. (Automatic revert caused conflicts, so I'm doing this commit manually).
This commit is contained in:
@@ -19,7 +19,6 @@
|
||||
|
||||
import wx
|
||||
import gui.chromeTabs
|
||||
import gui.mainFrame
|
||||
|
||||
class MultiSwitch(gui.chromeTabs.PFNotebook):
|
||||
def __init__(self, parent):
|
||||
@@ -44,10 +43,7 @@ class MultiSwitch(gui.chromeTabs.PFNotebook):
|
||||
|
||||
|
||||
def DeletePage(self, n, *args, **kwargs):
|
||||
if self.GetPageCount() > 1:
|
||||
gui.chromeTabs.PFNotebook.DeletePage(self, n, *args, **kwargs)
|
||||
else:
|
||||
gui.mainFrame.MainFrame.getInstance().Close()
|
||||
gui.chromeTabs.PFNotebook.DeletePage(self, n, *args, **kwargs)
|
||||
|
||||
class BlankPage(wx.Panel):
|
||||
def __init__(self, parent):
|
||||
|
||||
Reference in New Issue
Block a user