Skip to content

Commit

Permalink
allow native file choser
Browse files Browse the repository at this point in the history
  • Loading branch information
willpill committed Mar 11, 2024
1 parent e96abb3 commit fe846af
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugins/mcreator-localization/lang/texts.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1677,7 +1677,7 @@ preferences.ui.language.description=WARNING: Translations are community-contribu
preferences.ui.useMacOSMenuBar=Use the default macOS menu bar
preferences.ui.useMacOSMenuBar.description=On a macOS device, use the default menu bar located on the top of your screen.
preferences.ui.useNativeFileChooser=Use default system file chooser
preferences.ui.useNativeFileChooser.description=Check to use the default system file chooser. Only works on Windows at the moment.
preferences.ui.useNativeFileChooser.description=Check to use the default system file chooser. Only works on Windows & macOS at the moment.
preferences.ui.interfaceAccentColor=Interface accent color
preferences.ui.interfaceAccentColor.description=The accent color of the interface elements. If changed, the software needs to be restarted.
preferences.ui.backgroundSource=UI background sources
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ private static FileChooser.ExtensionFilter[] getFileFiltersForStringArray(String
}

private static boolean useNativeFileChooser() {
return PreferencesManager.PREFERENCES.ui.useNativeFileChooser.get() && OS.getOS() == OS.WINDOWS;
return PreferencesManager.PREFERENCES.ui.useNativeFileChooser.get() && OS.getOS() != OS.LINUX;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import static net.mcreator.ui.dialogs.file.FileDialogs.prevDir;

/**
* Should only be used on Windows OS at the time of writing due to Threading issues on *nix systems
* Should only be used on Windows or macOS at the time of writing due to Threading issues
*/
class NativeFileDialogs {

Expand Down

0 comments on commit fe846af

Please sign in to comment.