diff --git a/examples/custom_file_dialog/gui_file_dialog.h b/examples/custom_file_dialog/gui_file_dialog.h index dc3f93a..4b1b6aa 100644 --- a/examples/custom_file_dialog/gui_file_dialog.h +++ b/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); }