mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
Added current file extension check
This commit is contained in:
parent
be7a26dd12
commit
3de2269641
@ -379,7 +379,8 @@ class LevelEditorUIBase(WxAppShell):
|
|||||||
dialog.Destroy()
|
dialog.Destroy()
|
||||||
|
|
||||||
def onSave(self, evt=None):
|
def onSave(self, evt=None):
|
||||||
if self.editor.currentFile is None:
|
if self.editor.currentFile is None or\
|
||||||
|
not self.editor.currentFile.endswith('.py'):
|
||||||
return self.onSaveAs(evt)
|
return self.onSaveAs(evt)
|
||||||
else:
|
else:
|
||||||
self.editor.save()
|
self.editor.save()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user