From 2f018d131e54fbe11da727caa98053db1e3fa1df Mon Sep 17 00:00:00 2001 From: max Date: Sun, 31 Aug 2025 21:08:14 +0200 Subject: [PATCH] [CHANGE] Small changes, renamed app title --- Manager.App/Components/Layout/ApplicationLayout.razor.cs | 2 +- Manager.App/Components/Pages/Library.razor | 2 +- Manager.App/Services/LibraryService.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Manager.App/Components/Layout/ApplicationLayout.razor.cs b/Manager.App/Components/Layout/ApplicationLayout.razor.cs index e0c5850..7255079 100644 --- a/Manager.App/Components/Layout/ApplicationLayout.razor.cs +++ b/Manager.App/Components/Layout/ApplicationLayout.razor.cs @@ -7,7 +7,7 @@ public partial class ApplicationLayout [CascadingParameter] public BaseLayout? BaseLayout { get; set; } public bool DrawerOpen { get; set; } = true; - public string AppText { get; set; } = "YouTube Import"; + public string AppText { get; set; } = "YouTube Manager"; private void ToggleDrawerOpen() { diff --git a/Manager.App/Components/Pages/Library.razor b/Manager.App/Components/Pages/Library.razor index 1f5e74f..120d9cc 100644 --- a/Manager.App/Components/Pages/Library.razor +++ b/Manager.App/Components/Pages/Library.razor @@ -24,7 +24,7 @@ Library size: - @Suffix.BytesToSizeSuffix(_libraryInformation.TotalSizeBytes) + @($"{Suffix.BytesToSizeSuffix(_libraryInformation.TotalSizeBytes)} ({_libraryInformation.TotalSizeBytes} bytes)") diff --git a/Manager.App/Services/LibraryService.cs b/Manager.App/Services/LibraryService.cs index 90e3aeb..52b4d4f 100644 --- a/Manager.App/Services/LibraryService.cs +++ b/Manager.App/Services/LibraryService.cs @@ -59,7 +59,7 @@ public class LibraryService : ILibraryService { try { - var size = dir.EnumerateFiles("", SearchOption.AllDirectories).Select(f => f.Length).Sum(); + var size = dir.EnumerateFiles("*", SearchOption.AllDirectories).Select(f => f.Length).Sum(); return size; } catch (Exception e)