mirror of
https://github.com/raysan5/raygui.git
synced 2025-12-25 10:22:33 -05:00
Added 'saveFileMode' option to file dialog state (#177)
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user