- use fileChooser.showDialog(null, null) instead of fileChooser.showOpenDialog(null)

This commit is contained in:
Jaffe2718
2024-08-22 18:09:43 +08:00
parent fbde598420
commit 7deccf4199

View File

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