Readme update & few absolutely non-significant changes.

This commit is contained in:
Dmitry Isaenko 2019-10-13 05:37:44 +03:00
parent 6f5d02a864
commit 10d7cce148
4 changed files with 11 additions and 5 deletions

View file

@ -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;

View file

@ -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"));