From 9db5a74cd43e553763cc57f7650047e8cabd31b7 Mon Sep 17 00:00:00 2001 From: ShadelessFox Date: Thu, 7 Mar 2024 01:12:11 +0100 Subject: [PATCH] Navigator: File size display fix --- .../main/java/com/shade/decima/model/packfile/PackfileFile.java | 2 +- .../com/shade/decima/ui/navigator/impl/NavigatorFileNode.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/decima-model/src/main/java/com/shade/decima/model/packfile/PackfileFile.java b/modules/decima-model/src/main/java/com/shade/decima/model/packfile/PackfileFile.java index 7c02f4eb5..6dd38de2d 100644 --- a/modules/decima-model/src/main/java/com/shade/decima/model/packfile/PackfileFile.java +++ b/modules/decima-model/src/main/java/com/shade/decima/model/packfile/PackfileFile.java @@ -36,7 +36,7 @@ public Archive getArchive() { @Override public long getLength() { - return entry.hash(); + return entry.span().size(); } @NotNull diff --git a/modules/decima-ui/src/main/java/com/shade/decima/ui/navigator/impl/NavigatorFileNode.java b/modules/decima-ui/src/main/java/com/shade/decima/ui/navigator/impl/NavigatorFileNode.java index 55b758b5e..ae8e55697 100644 --- a/modules/decima-ui/src/main/java/com/shade/decima/ui/navigator/impl/NavigatorFileNode.java +++ b/modules/decima-ui/src/main/java/com/shade/decima/ui/navigator/impl/NavigatorFileNode.java @@ -70,6 +70,7 @@ public String getExtension() { return extension; } + @Override @NotNull public Packfile getPackfile() { return (Packfile) file.getArchive();