From 197fbbf46e9871c000474549cffc05e13a681d68 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sun, 2 Jun 2024 16:26:36 -0400 Subject: [PATCH] multi-chooser fix --- core/src/mindustry/core/Platform.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/src/mindustry/core/Platform.java b/core/src/mindustry/core/Platform.java index 84e67a9f23..e395d82412 100644 --- a/core/src/mindustry/core/Platform.java +++ b/core/src/mindustry/core/Platform.java @@ -290,7 +290,13 @@ public interface Platform{ }); }catch(Throwable error){ Log.err("Failure to execute native file chooser", error); - Core.app.post(() -> defaultFileDialog(open, title, ext[0], cons)); + Core.app.post(() -> { + if(ext.length > 1){ + defaultMultiFileChooser(cons, ext); + }else{ + defaultFileDialog(open, title, ext[0], cons); + } + }); } }); }