Setting default filter index. #35

This commit is contained in:
Rob Greene 2019-10-01 19:07:05 -05:00
parent 608b222426
commit 3187d016af

View File

@ -165,6 +165,7 @@ public class SwtAppleCommander implements Listener {
fileDialog.setFilterNames(names); fileDialog.setFilterNames(names);
fileDialog.setFilterExtensions(extensions); fileDialog.setFilterExtensions(extensions);
fileDialog.setFilterPath(userPreferences.getDiskImageDirectory()); fileDialog.setFilterPath(userPreferences.getDiskImageDirectory());
fileDialog.setFilterIndex(0);
String fullpath = fileDialog.open(); String fullpath = fileDialog.open();
if (fullpath != null) { if (fullpath != null) {