Skip to content

file: add NK_CONSOLE_FILE_SDL_NATIVE_DIALOG#220

Merged
RobLoach merged 4 commits into
masterfrom
fix/file-sdl-native-dialog
May 30, 2026
Merged

file: add NK_CONSOLE_FILE_SDL_NATIVE_DIALOG#220
RobLoach merged 4 commits into
masterfrom
fix/file-sdl-native-dialog

Conversation

@RobLoach
Copy link
Copy Markdown
Owner

When NK_CONSOLE_FILE_SDL_NATIVE_DIALOG is defined and SDL3 is present, nk_console_file/dir_action opens the platform's native picker (SDL_ShowOpenFileDialog / SDL_ShowOpenFolderDialog) instead of the in-widget browser. The nk_console_file_set_filter() extensions are forwarded through SDL_DialogFileFilter[]. An optional NK_CONSOLE_FILE_SDL_WINDOW(console) macro lets callers supply the SDL_Window*. Without the macro set, existing in-widget behavior is unchanged. Fixes #213

@RobLoach RobLoach self-assigned this May 30, 2026
@RobLoach RobLoach merged commit d000596 into master May 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

File widget: use SDL_ShowOpenFileDialog() when SDL backend is active

1 participant