From 2f61188e75a51ecabbed1a924b0667273970f7a2 Mon Sep 17 00:00:00 2001
From: schroda <50052685+schroda@users.noreply.github.com>
Date: Tue, 21 Jul 2026 01:33:23 +0200
Subject: [PATCH] Fix library sort order icons
---
src/base/components/inputs/SortRadioInput.tsx | 6 ++++--
src/features/library/components/LibraryOptionsPanel.tsx | 2 +-
src/i18n/locales/en.po | 8 ++++++++
3 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/src/base/components/inputs/SortRadioInput.tsx b/src/base/components/inputs/SortRadioInput.tsx
index b61ce61b..fdded6de 100644
--- a/src/base/components/inputs/SortRadioInput.tsx
+++ b/src/base/components/inputs/SortRadioInput.tsx
@@ -16,9 +16,11 @@ interface IProps extends RadioInputProps {
sortDescending?: boolean | null | undefined;
}
-export const SortRadioInput = memo(({ sortDescending, ...rest }: IProps) => (
+export const SortRadioInput = memo(({ sortDescending, checkedIcon, ...rest }: IProps) => (
: }
{...rest}
+ checkedIcon={
+ checkedIcon ?? (sortDescending ? : )
+ }
/>
));
diff --git a/src/features/library/components/LibraryOptionsPanel.tsx b/src/features/library/components/LibraryOptionsPanel.tsx
index c7c3766d..101543b4 100644
--- a/src/features/library/components/LibraryOptionsPanel.tsx
+++ b/src/features/library/components/LibraryOptionsPanel.tsx
@@ -217,7 +217,7 @@ export const LibraryOptionsPanel = ({
key={mode}
label={t(label)}
checked={categoryLibraryOptions.sortBy === mode}
- checkedIcon={mode === 'random' ? : undefined}
+ checkedIcon={mode === 'random' ? : undefined}
sortDescending={categoryLibraryOptions.sortDesc}
onClick={() =>
mode !== categoryLibraryOptions.sortBy
diff --git a/src/i18n/locales/en.po b/src/i18n/locales/en.po
index eb99592b..236cda10 100644
--- a/src/i18n/locales/en.po
+++ b/src/i18n/locales/en.po
@@ -1119,6 +1119,10 @@ msgstr "Could not log out from KOReader Sync"
msgid "Could not migrate manga"
msgstr "Could not migrate manga"
+#: src/features/library/components/LibraryToolbarMenu.tsx
+msgid "Could not open random entry"
+msgstr "Could not open random entry"
+
#: src/features/downloads/screens/DownloadQueue.tsx
msgid "Could not remove all downloads from the queue"
msgstr "Could not remove all downloads from the queue"
@@ -2784,6 +2788,10 @@ msgstr "Open in WebView"
msgid "Open page on exit"
msgstr "Open page on exit"
+#: src/features/library/components/LibraryToolbarMenu.tsx
+msgid "Open random entry"
+msgstr "Open random entry"
+
#: src/features/settings/screens/WebUISettings.tsx
msgid "Open the WebUI when starting the server"
msgstr "Open the WebUI when starting the server"