mirror of
https://github.com/developersu/ns-usbloader.git
synced 2025-05-15 07:34:46 -04:00
Update checkboxes representation in dark theme
Add icons to pop-up windows Add NSZ, XCZ filters in addition to XCI while option in settings selected + updated translation strings for this option in all currently available locales (bad idea, should be validated by native-speakers once they get a chance)
This commit is contained in:
parent
ab6b3e0206
commit
077aa9b0d8
25 changed files with 73 additions and 39 deletions
src/main/java/nsusbloader/Controllers
|
@ -122,8 +122,8 @@ public class NSLMainController implements Initializable {
|
|||
else
|
||||
fileChooser.setInitialDirectory(new File(System.getProperty("user.home")));
|
||||
|
||||
if (FrontTabController.getSelectedProtocol().equals("TinFoil") && SettingsTabController.getTfXCISupport())
|
||||
fileChooser.getExtensionFilters().add(new FileChooser.ExtensionFilter("NSP/XCI", "*.nsp", "*.xci"));
|
||||
if (FrontTabController.getSelectedProtocol().equals("TinFoil") && SettingsTabController.getTfXciNszXczSupport())
|
||||
fileChooser.getExtensionFilters().add(new FileChooser.ExtensionFilter("NSP/XCI/NSZ/XCZ", "*.nsp", "*.xci", "*.nsz", "*.xcz"));
|
||||
else if (FrontTabController.getSelectedProtocol().equals("GoldLeaf") && (! SettingsTabController.getNSPFileFilterForGL()))
|
||||
fileChooser.getExtensionFilters().addAll(new FileChooser.ExtensionFilter("Any file", "*.*"),
|
||||
new FileChooser.ExtensionFilter("NSP ROM", "*.nsp")
|
||||
|
@ -253,6 +253,7 @@ public class NSLMainController implements Initializable {
|
|||
/**
|
||||
* Drag-n-drop support (drop consumer)
|
||||
* */
|
||||
// TODO: DO SOMETHING WITH THIS
|
||||
@FXML
|
||||
private void handleDrop(DragEvent event){
|
||||
if (MediatorControl.getInstance().getTransferActive()) {
|
||||
|
@ -261,14 +262,18 @@ public class NSLMainController implements Initializable {
|
|||
}
|
||||
List<File> filesDropped = new ArrayList<>();
|
||||
try {
|
||||
if (FrontTabController.getSelectedProtocol().equals("TinFoil") && SettingsTabController.getTfXCISupport()){
|
||||
if (FrontTabController.getSelectedProtocol().equals("TinFoil") && SettingsTabController.getTfXciNszXczSupport()){
|
||||
for (File fileOrDir : event.getDragboard().getFiles()) {
|
||||
if (fileOrDir.isDirectory()) {
|
||||
for (File file : fileOrDir.listFiles())
|
||||
if ((! file.isDirectory()) && (file.getName().toLowerCase().endsWith(".nsp") || file.getName().toLowerCase().endsWith(".xci")))
|
||||
if ((! file.isDirectory()) && (file.getName().toLowerCase().endsWith(".nsp") ||
|
||||
file.getName().toLowerCase().endsWith(".xci") ||
|
||||
file.getName().toLowerCase().endsWith(".nsz") ||
|
||||
file.getName().toLowerCase().endsWith(".xcz")))
|
||||
filesDropped.add(file);
|
||||
}
|
||||
else if (fileOrDir.getName().toLowerCase().endsWith(".nsp") || fileOrDir.getName().toLowerCase().endsWith(".xci"))
|
||||
else if (fileOrDir.getName().toLowerCase().endsWith(".nsp") || fileOrDir.getName().toLowerCase().endsWith(".xci") ||
|
||||
fileOrDir.getName().toLowerCase().endsWith(".nsz") || fileOrDir.getName().toLowerCase().endsWith(".xcz") )
|
||||
filesDropped.add(fileOrDir);
|
||||
|
||||
}
|
||||
|
@ -322,7 +327,7 @@ public class NSLMainController implements Initializable {
|
|||
SettingsTabController.getHostPort(),
|
||||
SettingsTabController.getHostExtra(),
|
||||
SettingsTabController.getAutoCheckForUpdates(),
|
||||
SettingsTabController.getTfXCISupport(),
|
||||
SettingsTabController.getTfXciNszXczSupport(),
|
||||
SettingsTabController.getNSPFileFilterForGL(),
|
||||
SettingsTabController.getGlOldVer()
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue