Repository navigation
תיקון issue #5296 — F5 מרענן ספר אישי פתוח - #5694
Merged
otzaria-bot[bot] merged 11 commits intoNov 25, 2026
Merged
Conversation
Member
|
אין בזה צורך, לדעתי. |
This was referenced Nov 21, 2026
6 of 8 tasks
Member
Author
|
ממצא לתיקון: יש להמתין לתוצאת הסריקה של ה־F5 עצמו. ב־ |
Y-PLONI
marked this pull request as draft
November 22, 2026 12:53
Member
3 tasks done
Y-PLONI
marked this pull request as ready for review
November 24, 2026 18:14
yom-chadash
force-pushed
the
feat/refresh-personal-book-5296
branch
from
November 25, 2026 11:57
dbf644d to
c6a48c2
Compare
הקורא כבר נטען מחדש כשרענון הספרייה מדווח שספר אישי פתוח השתנה (Otzaria#4609, 2b7fcd7), אבל כדי להגיע לשם היה צריך לעבור להגדרות ולרענן את כל התיקיות. F5 (קיצור הניתן לשינוי, key-shortcut-refresh-book) בספר אישי סורק את התיקייה שמכילה את קובץ הספר ומציג את תוצאת הסריקה. בספר מהספרייה הרשמית המקש לא עושה דבר.
_rescanPersonalBook חיכה למצב הראשון שבו isSyncing שקרי, ולכן סריקת רקע שכבר רצה בזמן ההקשה סיפקה את ההמתנה: הוצגה ההודעה שלה, כולל הצלחה, גם כשהסריקה של F5 נכשלה אחר כך. עכשיו ההקשה שולחת requestId ומחכה ל- completedScan שלו, החוזה שכבר קיים ב-RescanCustomFolders.
Modify _folderContaining to return up to two matching folder paths instead of one.
Clarify comments for folder path and file folder parameters.
Add comment explaining new default refresh shortcut behavior.
Added a test for RescanCustomFolders to verify scanning of nested folder sources.
otzaria-bot
Bot
force-pushed
the
feat/refresh-personal-book-5296
branch
from
November 25, 2026 13:21
71bb601 to
78d0e3d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
מה היה חסר
מי שעורך את הקובץ של ספר אישי (Word או TXT בתיקייה אישית) בזמן שהספר פתוח, לא רואה את השינוי בקורא. כדי לראות אותו צריך לעבור להגדרות, לרענן את כל התיקיות האישיות ולחזור לספר.
מצב קיים
החלק השני של הבעיה כבר נפתר ב-dev: כשרענון הספרייה מדווח שספר אישי פתוח השתנה, הטאב נטען מחדש באותו מיקום (#4609, 2b7fcd71d מ-15.11). מספר הגרסה ב-dev עדיין 0.9.98+99803, ולכן אי אפשר לדעת מהדיווח אם התיקון הזה כבר היה אצל המדווח.
מה שעוד חסר הוא דרך לרענן את הספר מתוך הקורא עצמו.
ההחלטה
palmoni5 כתב "צריך לחשוב". mmichaelush הציע להתחיל ב-F5 שמרענן ספר פתוח, לפני שמוסיפים כפתורים או הגדרות. מימשתי רק את F5, בלי כפתור חדש. כפתור בתפריט (#1535) אפשר להוסיף בהמשך מעל אותו מסלול.
השינוי
key-shortcut-refresh-book), ברירת מחדל F5. אפשר לשנות אותו בהגדרות ← קיצורי מקלדת ← תצוגת ספר.RescanCustomFoldersקיבל פרמטרfolderOfFile, והבלוק מתרגם אותו לתיקייה שמכילה את הקובץ. שאר הקוראים לא השתנו.Closes #5296
Refs #1535
בדיקות
text_book_screen_user_book_reload_test.dart, בקבוצה "F5 מרענן ספר אישי פתוח (issue [דיווח מהתוכנה] עדכון ספרים אישיים #5296)":flutter test -j 1על test/shortcuts, test/settings, test/text_book/view ו-test/library/bloc:personal_books_import_service_test, orphan_library_service_test) נכשלות בשניהם כשמריצים כ-root. שאר הכשלים (library_setup_dialog_testבענף;backup_settings_search_test, backup_mode_multiwindow_testו-page_shape_super_commentary_wait_testבבסיס) תלויי תזמון:library_setup_dialog_testעובר כשמריצים אותו לבד בענף (פעמיים) ובבסיס של הענף (43/43). אף אחד מהם לא נוגע בשינוי.dart analyzeו-dart format --set-exit-if-changedנקיים.dart tool/ui_lint_cli.dartמחזיר פלט זהה לבסיס.git merge-treeנקי מול upstream/dev (9aea09e), ואין התנגשות חדשה מול אף אחד מ-48 ה-PR הפתוחים. PR שנוגעים באותם קבצים לא מקבלים קונפליקט נוסף (ל-מרקר מובנה במקום תוסף המרקר #3036, תנ"ך בקריאה רציפה: «כמסורה» — פרק ופסוק בגליון, פרשה ועלייה בצד, פסקה בפתוחה #2788 ו-איתור: הקדמת ספרים שהמשתמש פותח מהאיתור (#5168) #5612 יש כבר התנגשויות מול dev, ומספרן לא משתנה):shortcut_validator.dart, shortcuts_settings_tab.dart, text_book_screen.dart, settings_en.arb.text_book_screen.dart, settings_en.arb.custom_folders_bloc.dart.settings_en.arb.