From 10d7cce1486acfe458045ddd1c178e8ec498af3b Mon Sep 17 00:00:00 2001 From: Dmitry Isaenko Date: Sun, 13 Oct 2019 05:37:44 +0300 Subject: [PATCH] Readme update & few absolutely non-significant changes. --- README.md | 4 ++++ pom.xml | 2 +- .../nsusbloader/Controllers/NSTableViewController.java | 8 +++++--- src/main/java/nsusbloader/NSLMain.java | 2 +- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 053b029..2812612 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,10 @@ Sometimes I add new posts about this project [on my home page](https://developer * [usb4java](https://mvnrepository.com/artifact/org.usb4java/usb4java) * Few icons taken from: [materialdesignicons.com](http://materialdesignicons.com/) +#### List of awesome contributors! + +* [wolfposd](https://github.com/wolfposd) + #### Thanks for the great work done by our translators! * French by [Stephane Meden (JackFromNice)](https://github.com/JackFromNice) diff --git a/pom.xml b/pom.xml index 8f21b07..14ebdb0 100644 --- a/pom.xml +++ b/pom.xml @@ -8,7 +8,7 @@ NS-USBloader ns-usbloader - 0.8-SNAPSHOT + 0.8.1-SNAPSHOT https://github.com/developersu/ns-usbloader/ diff --git a/src/main/java/nsusbloader/Controllers/NSTableViewController.java b/src/main/java/nsusbloader/Controllers/NSTableViewController.java index fdcd415..1370c75 100644 --- a/src/main/java/nsusbloader/Controllers/NSTableViewController.java +++ b/src/main/java/nsusbloader/Controllers/NSTableViewController.java @@ -98,7 +98,8 @@ public class NSTableViewController implements Initializable { protected void updateItem(Long length, boolean empty) { if (length == null || empty) { setText(""); - } else { + } + else { setText(formatByteSize(length)); } } @@ -218,8 +219,9 @@ public class NSTableViewController implements Initializable { rowsObsLst.removeIf(current -> ! current.getNspFileName().toLowerCase().endsWith("nsp")); table.refresh(); } - - + /** + * Used for showing in 'Size' column size representation in human-readable format + * */ private String formatByteSize(double length) { final String[] unitNames = { "bytes", "KiB", "MiB", "GiB", "TiB"}; int i; diff --git a/src/main/java/nsusbloader/NSLMain.java b/src/main/java/nsusbloader/NSLMain.java index 674b46e..37a6bc1 100644 --- a/src/main/java/nsusbloader/NSLMain.java +++ b/src/main/java/nsusbloader/NSLMain.java @@ -12,7 +12,7 @@ import java.util.Locale; import java.util.ResourceBundle; public class NSLMain extends Application { - public static final String appVersion = "v0.8"; + public static final String appVersion = "v0.8.1"; @Override public void start(Stage primaryStage) throws Exception{ FXMLLoader loader = new FXMLLoader(getClass().getResource("/NSLMain.fxml"));