multi-chooser fix

This commit is contained in:
Anuken
2024-06-02 16:26:36 -04:00
parent 1fc83e6b0f
commit 197fbbf46e

View File

@@ -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);
}
});
}
});
}