From d8fbf5fe08ce2b9840e43a715c75cd52b7ba563a Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Fri, 5 Jun 2026 00:03:19 +0800 Subject: [PATCH] fix(reader): show KOReader progress-synced as a top-right hint (#4461) (#4463) KOReader sync displayed the "Reading Progress Synced" notification as a centered info toast that blocks the text for fast readers, while Readest's own cloud sync uses an unobtrusive top-right hint. Route the notification through the same 'hint' event (HintInfo, top-right, ~2s auto-dismiss) that useProgressSync uses, instead of the centered 'toast'. This covers both KOSync paths that apply remote progress (the auto-apply receive/silent flow and the conflict-resolved "use remote" flow); the interactive conflict-resolution dialog is unchanged. Co-authored-by: Claude Opus 4.8 (1M context) --- apps/readest-app/src/app/reader/hooks/useKOSync.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/readest-app/src/app/reader/hooks/useKOSync.ts b/apps/readest-app/src/app/reader/hooks/useKOSync.ts index e3f3c341..b2d77b02 100644 --- a/apps/readest-app/src/app/reader/hooks/useKOSync.ts +++ b/apps/readest-app/src/app/reader/hooks/useKOSync.ts @@ -152,10 +152,9 @@ export const useKOSync = (bookKey: string) => { view.goToFraction(remoteFraction); } } - eventDispatcher.dispatch('toast', { + eventDispatcher.dispatch('hint', { + bookKey, message: _('Reading Progress Synced'), - type: 'info', - timeout: 2000, }); };