|
@@ -444,6 +444,7 @@ class LevelEditorUIBase(WxAppShell):
|
|
|
dialog = wx.FileDialog(None, "Choose a file", os.getcwd(), "", "*.py", wx.OPEN)
|
|
dialog = wx.FileDialog(None, "Choose a file", os.getcwd(), "", "*.py", wx.OPEN)
|
|
|
if dialog.ShowModal() == wx.ID_OK:
|
|
if dialog.ShowModal() == wx.ID_OK:
|
|
|
self.editor.load(dialog.GetPath())
|
|
self.editor.load(dialog.GetPath())
|
|
|
|
|
+ self.editor.setTitleWithFilename(dialog.GetPath())
|
|
|
dialog.Destroy()
|
|
dialog.Destroy()
|
|
|
|
|
|
|
|
def onSave(self, evt=None):
|
|
def onSave(self, evt=None):
|
|
@@ -458,6 +459,7 @@ class LevelEditorUIBase(WxAppShell):
|
|
|
result = True
|
|
result = True
|
|
|
if dialog.ShowModal() == wx.ID_OK:
|
|
if dialog.ShowModal() == wx.ID_OK:
|
|
|
self.editor.saveAs(dialog.GetPath())
|
|
self.editor.saveAs(dialog.GetPath())
|
|
|
|
|
+ self.editor.setTitleWithFilename(dialog.GetPath())
|
|
|
else:
|
|
else:
|
|
|
result = False
|
|
result = False
|
|
|
dialog.Destroy()
|
|
dialog.Destroy()
|