Browse Source

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

Daniel Fortes 3 years ago
parent
commit
0dd763f4a4
1 changed files with 3 additions and 1 deletions
  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);
                 }