mirror of
https://github.com/TeamMidnightDust/MidnightLib.git
synced 2025-12-15 17:05:09 +01:00
- use fileChooser.showDialog(null, null) instead of fileChooser.showOpenDialog(null)
This commit is contained in:
@@ -388,7 +388,7 @@ public abstract class MidnightConfig {
|
||||
Text.translatable(translationPrefix + info.field.getName() + ".fileFilter.description").getString(),
|
||||
e.fileExtensions()));
|
||||
}
|
||||
if (fileChooser.showOpenDialog(null) == JFileChooser.APPROVE_OPTION) {
|
||||
if (fileChooser.showDialog(null, null) == JFileChooser.APPROVE_OPTION) {
|
||||
info.value = fileChooser.getSelectedFile().getAbsolutePath();
|
||||
info.tempValue = info.value.toString();
|
||||
list.clear();
|
||||
|
||||
Reference in New Issue
Block a user