A mosaic cell already carries a full-thickness underline, painted white until it
takes the focus, so the strip only ever changes colour: there is nothing to
reserve or to clear. The cell hands its focus indicator out like the other views.
Unintuitively, FileManager:deleteFile updates history and collections,
but FileManager:moveFile doesn't, so we need to do it manually (like
movetoarchive.koplugin does).
Otherwise, articles added to Favourites (or any other collection) will
either
a) crash koreader if someone tries to open it from the collection immediately
b) disappear from the collection after koreader restart
Moving (or deleting) the file while it's still being open in the reader
causes problems: its metadata will be written to the old location when
it's eventually closed, and I think I've seen crashes as well (don't
quite remember but something like switching to File Browser and then
using the Open Last Book function or something).
The simplest solution is to just not archive it while it's still open.
It will be archived on the next sync anyway.
Alternatively, we could do what movetoarchive.koplugin does, and ask the
user whether they want to open it from the new location (if archiving)
or switch back to File Browser:
https://github.com/koreader/koreader/blob/8c4d6c0a3ab8449ac65b413187d27d54f50fd946/plugins/movetoarchive.koplugin/main.lua#L153-L161
I don't think it's worth the complexity though — Move to Archive doing
nothing is bad UX, obviously, but a Wallabag sync skipping one article
until the next sync is fine, IMO.
I suspect this might also be related to this TODO note:
https://github.com/koreader/koreader/blob/8c4d6c0a3ab8449ac65b413187d27d54f50fd946/plugins/wallabag.koplugin/main.lua#L1428
The arxiv .pdf-suffix workaround ran unconditionally after the rel
handling, so an acquisition link with type="application/pdf" and no
.pdf suffix was added twice. Only apply it when the link produced no
acquisition above.
Fixes#15849
InputDialog binds the Back key group, but its handler only presses a button
carrying id "close" and does nothing when the dialog has none, so on a
non-touch device those dialogs cannot be dismissed with the key at all: the
only way out is to aim the cursor at Cancel.
Dialogs that can lose work should get that button (_addSaveCloseButtons adds
it alongside save_callback, and its callback is what asks about unsaved
changes), so the rest can simply close, as ButtonDialog does with the same key.
Including the archive dir in the result of Wallabag:getLocalArticles
causes all archived articles' statuses to be synced with Wallabag every
time. That leads to an increase in sync times from seconds to minutes
(or even more if one's archive is larger than hundreds…).
The fix is simple: skip the archive dir when scanning.
(As a side effect, this allows one to organise their archive dir using
subdirs, which is similar to the motivation of the PR that broke this…)
Fixes: 896646bf8b ("Reworked the Wallabag plugin to recursively scan the download directory (#15558)")
Fixes: https://github.com/koreader/koreader/pull/15558#issuecomment-5136923551
When the sync server is unreachable (offline reading, intermittent WiFi,
server down), progress updates are now queued locally instead of being
silently dropped. Queued items are drained on the next successful network
connection.
Queue behavior:
- One entry per document per day (preserves daily reading statistics)
- Entries expire after 4 weeks
- Hard cap of 200 entries as safety net
- Auth failures (401) are not queued (won't resolve by retrying)
- Queue is cleared on logout
Integration points:
- updateProgress: queues on pcall failure or non-auth callback failure
- _onNetworkConnected: drains queue before pulling remote progress
- _onCloseDocument: queues immediately if offline instead of blocking
with goOnlineToRun (avoids WiFi prompts on document close)
Fixes#9267, fixes#10678, fixes#11105
* Adds an optional setting to kill all dropbear processes when stopping the server, giving users control over whether active sessions are terminated.
* Modify signal sending to use pkill and kill
A self-closing content tag (`<content type="text"/>`) has no `">` of its own,
so the lazy `.-` in the `<content type=".-">` rewrite runs forward to the next
entry's content tag and collapses everything in between -- links included --
into a single `<content>`. luxl then parses a mangled tree: entries are dropped
and covers get paired with the wrong titles.
Normalize self-closing content tags to an empty `<content />` element before
that rewrite. Adds a regression test with a self-closing content tag between
two entries.
Fixes#15511