Merge pull request #1351 from sungsphinx/sdl3-save-dialog-filters

SDL3: Fix only 1 filter type showing on save dialog
This commit is contained in:
UnknownShadow200 2025-04-07 22:03:16 +10:00 committed by GitHub
commit 59cf7735a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{ {
"id": "net.classicube.flatpak.client", "id": "net.classicube.flatpak.client",
"runtime": "org.gnome.Platform", "runtime": "org.gnome.Platform",
"runtime-version": "47", "runtime-version": "48",
"sdk": "org.gnome.Sdk", "sdk": "org.gnome.Sdk",
"command": "ClassiCubeLauncher", "command": "ClassiCubeLauncher",
"finish-args": [ "finish-args": [

View File

@ -426,7 +426,7 @@ cc_result Window_SaveFileDialog(const struct SaveFileDialogArgs* args) {
dlgCallback = args->Callback; dlgCallback = args->Callback;
save_filters = filters; save_filters = filters;
SDL_ShowSaveFileDialog(DialogCallback, NULL, win_handle, filters, 1, defName); SDL_ShowSaveFileDialog(DialogCallback, NULL, win_handle, filters, i, defName);
return 0; return 0;
} }