mirror of
https://github.com/raysan5/raygui.git
synced 2026-01-30 18:59:18 -05:00
Added 'saveFileMode' option to file dialog state (#177)
This commit is contained in:
@ -78,6 +78,8 @@ typedef struct {
|
|||||||
|
|
||||||
int prevFilesListActive;
|
int prevFilesListActive;
|
||||||
|
|
||||||
|
bool saveFileMode;
|
||||||
|
|
||||||
} GuiFileDialogState;
|
} GuiFileDialogState;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
@ -350,7 +352,7 @@ void GuiFileDialog(GuiFileDialogState *state)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else if (!state->saveFileMode)
|
||||||
{
|
{
|
||||||
strcpy(state->fileNameText, state->fileNameTextCopy);
|
strcpy(state->fileNameText, state->fileNameTextCopy);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user