From 0dd763f4a4c75297675c5e38485aaec0ee285340 Mon Sep 17 00:00:00 2001 From: Daniel Fortes Date: Thu, 10 Mar 2022 07:06:57 -0300 Subject: [PATCH] Added 'saveFileMode' option to file dialog state (#177) --- examples/custom_file_dialog/gui_file_dialog.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); }