-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A bundle of tweaks #9691
A bundle of tweaks #9691
Conversation
(Rebase me). First commit ended up sliiightly scarier than I expected, but... 'tis the season :D. |
(Approved as "ok on the principle", not that I approve the unit tests failing :) |
Yeah, unit tests should be fixed by the base bump ;p. |
Side question. Should we use such alignment more often? (looks good) koreader/frontend/ui/widget/container/scrollablecontainer.lua Lines 82 to 90 in 8921e80
|
I mean, I'd be all for it, as that how I setup clang-format for C stuff ;o). Here, the pattern kinda screamed for it, though, so it was an easy decision (by which I mean, it's a very neat series ;)). |
665052a
to
30b33a3
Compare
f39b852
to
07b9667
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 79 of 84 files at r1, 4 of 4 files at r3, 2 of 2 files at r4, 7 of 7 files at r5, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @Frenzie, @pazos, and @poire-z)
Get rid of the doc & seqtext fields, as they are not actually used (nor are they particularly useful, the event handler's name should be pretty self-explanatory). Also, tweak the key_events documentation to highlight the quirks of the API, especially as far as array nesting is involved... Random drive-by cleanup of the declarations of key_events & ges_events to re-use the existing instance object (now that we know they're sane ;p) for tables with a single member (less GC pressure).
(i.e., do the usual flush & fsync dance, because FAT32 is the worst).
…esture actually was adjusted.
& Nia). And also disable the jump marker on those, like we did for the Libra 2.
Because apparently people are confused by the UIManager:quit ones...
standby logging messages to debug (except for warnings/errors, of course).
Otherwise, stuff that inherits logger functions on require don't get logged (i.e., framebuffer), and the debug guards aren't hooked.
Tone it down for everyone, as it's been running smoothly for a while now, but add a dedicated extra warning on buggy boards that it might randomly implode.
(This involves moving it to the instance object to avoid inheritance). Pocketbook: Disable rotation_map on the Era (fix koreader#9556) It would appear that InkView handles the translation for us, now...
I'd completely forgotten they'd announced one ;o).
input modules. There was a weird mix of touch being handled there, and key/msc here, which was weird and made the logs extremely confusing to read.
defaults.persistent.lua We were pcall'ing the parsing, but not the execution... The funky Lua syntax quirks means that it is possible to pass the former but not the latter ;). Fix koreader#9700, de-facto regression since koreader#9546
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 6 of 6 files at r6, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @Frenzie, @pazos, and @poire-z)
The fuse proxy strikes again... Fix koreader#9704
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @Frenzie, @pazos, and @poire-z)
-- deligate gesture listener to readerui | ||
self.ges_events = {} | ||
-- delegate gesture listener to readerui | ||
self.ges_events = nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@NiLuJe
Regression
The 4 places you changed self.ges_events
from {}
to nil
do not let me do any gestures in the reader (even swipe to open the menu)
./luajit: frontend/ui/widget/container/inputcontainer.lua:257: bad argument #1 to 'pairs' (table expected, got nil)
regression in koreader#9691 b523c2e
(Writing here as it's one of the latest PR changing the Menu widget) On a tap the coroutine is created: koreader/frontend/ui/widget/menu.lua Lines 487 to 498 in 068809b
This was introduced in #1637 to support OPDS authorization. Since then OPDSBrowser has been changed a lot and now does not check for a coroutine existence. So is this coroutine creation needed anymore? |
Not really familiar with corountines (or what I learned about them when I needed to make Trapper, I have forgotten), but indeed, we never really need to use coroutines, so I guess if we'd rewrite this menu select code now, we wouldn't even think about adding anything coroutine in there :) |
I forgot that was in there. What that code is doing seems sensible for that kind of scenario though? What happens now? I don't really use OPDS much, let alone with authorization. |
Earlier there was an option to authorize to opds server manually via the dialog entering login/pwd. |
If it's not used anywhere I suppose it should be fine to remove since then it's also somewhat untested after all. :-) |
seqtext
&doc
fields. I'm not sure if they're remnants of KPV or of an aoborted design, but it's been very dead code for a very long while.This spurred a bit of cleanup along the way ;p.
defaults.lua
migration (fix 2022.10 crashes if DCREREADER_CONFIG_MARGIN_SIZES present in defaults.persistent.lua #9700)Device:untar
actually works when targeting the userstore fuse proxy (fix can't seem to look up words with chinese dictionary #9704)Depends on koreader/koreader-base#1544 & koreader/koreader-base#1545
This change is![Reviewable](https://camo.githubusercontent.com/23b05f5fb48215c989e92cc44cf6512512d083132bd3daf689867c8d9d386888/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)