浏览代码

Added 'saveFileMode' option to file dialog state (#177)

Daniel Fortes 3 年之前
父节点
当前提交
0dd763f4a4
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      examples/custom_file_dialog/gui_file_dialog.h

+ 3 - 1
examples/custom_file_dialog/gui_file_dialog.h

@@ -78,6 +78,8 @@ typedef struct {
 
     int prevFilesListActive;
 
+    bool saveFileMode;
+
 } GuiFileDialogState;
 
 #ifdef __cplusplus
@@ -350,7 +352,7 @@ void GuiFileDialog(GuiFileDialogState *state)
                         }
                     }
                 }
-                else
+                else if (!state->saveFileMode)
                 {
                     strcpy(state->fileNameText, state->fileNameTextCopy);
                 }