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

This commit is contained in:
Daniel Fortes 2022-03-10 07:06:57 -03:00 committed by GitHub
parent 627e879018
commit 0dd763f4a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}