diff --git a/src/main/java/nsusbloader/Controllers/NxdtController.java b/src/main/java/nsusbloader/Controllers/NxdtController.java index 74ba291..6a51586 100644 --- a/src/main/java/nsusbloader/Controllers/NxdtController.java +++ b/src/main/java/nsusbloader/Controllers/NxdtController.java @@ -73,8 +73,10 @@ public class NxdtController implements Initializable { dc.setTitle(rb.getString("tabSplMrg_Btn_SelectFolder")); dc.setInitialDirectory(new File(saveToLocationLbl.getText())); File saveToDir = dc.showDialog(saveToLocationLbl.getScene().getWindow()); - if (saveToDir != null) + if (saveToDir != null) { saveToLocationLbl.setText(saveToDir.getAbsolutePath()); + statusLbl.setText("FreeSpace: "+saveToDir.getParentFile().getFreeSpace()); //TODO:REMOVE DEBUG + } } /** * Start reading commands from NXDT button handler diff --git a/src/main/java/nsusbloader/Utilities/NxdtUsbAbi1.java b/src/main/java/nsusbloader/Utilities/NxdtUsbAbi1.java index 4cdd800..6527929 100644 --- a/src/main/java/nsusbloader/Utilities/NxdtUsbAbi1.java +++ b/src/main/java/nsusbloader/Utilities/NxdtUsbAbi1.java @@ -31,7 +31,6 @@ import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.nio.IntBuffer; import java.nio.charset.StandardCharsets; -import java.nio.file.Paths; import java.util.Arrays; class NxdtUsbAbi1 {