File tree 1 file changed +13
-4
lines changed
1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -377,17 +377,26 @@ Error FreeDesktopPortalDesktop::file_dialog_show(DisplayServer::WindowID p_windo
377
377
String flt = tokens[0 ].strip_edges ();
378
378
if (!flt.is_empty ()) {
379
379
if (tokens.size () == 2 ) {
380
- filter_exts.push_back (flt);
380
+ if (flt == " *.*" ) {
381
+ filter_exts.push_back (" *" );
382
+ } else {
383
+ filter_exts.push_back (flt);
384
+ }
381
385
filter_names.push_back (tokens[1 ]);
382
386
} else {
383
- filter_exts.push_back (flt);
384
- filter_names.push_back (flt);
387
+ if (flt == " *.*" ) {
388
+ filter_exts.push_back (" *" );
389
+ filter_names.push_back (RTR (" All Files" ));
390
+ } else {
391
+ filter_exts.push_back (flt);
392
+ filter_names.push_back (flt);
393
+ }
385
394
}
386
395
}
387
396
}
388
397
}
389
398
if (filter_names.is_empty ()) {
390
- filter_exts.push_back (" *.* " );
399
+ filter_exts.push_back (" *" );
391
400
filter_names.push_back (RTR (" All Files" ));
392
401
}
393
402
You can’t perform that action at this time.
0 commit comments