瀏覽代碼

wxGUI/animation: fix validation of extension of exported file (#907)

Tomas Zigo 4 年之前
父節點
當前提交
cc4acd24c3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gui/wxpython/animation/dialogs.py

+ 1 - 1
gui/wxpython/animation/dialogs.py

@@ -1593,7 +1593,7 @@ class ExportDialog(wx.Dialog):
             GError(parent=self, message=_("Export file is missing."))
             return False
         else:
-            if file_path.endswith(file_postfix):
+            if not file_path.endswith(file_postfix):
                 filebrowsebtn.SetValue(file_path + file_postfix)
                 file_path += file_postfix