Skip to content

Commit

Permalink
multi-chooser fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuken committed Jun 2, 2024
1 parent 1fc83e6 commit 197fbbf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion core/src/mindustry/core/Platform.java
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,13 @@ default void showNativeFileChooser(boolean open, String title, Cons<Fi> cons, St
});
}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);
}
});
}
});
}
Expand Down

0 comments on commit 197fbbf

Please sign in to comment.