You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
koreader/plugins
NiLuJe b0cc940776 AutoSuspend: Unbreak scheduling & settings across instances
Plugins are loaded *once*, but torn-down/instantiated multiple times,
and sometimes in the reverse order.

As such, if we use a public function member as the scheduled task, we're
always pointing to the same function, and going from FM to RD
effectively *un*schedules it.

Instead, use an instance-specific closure, so that each instance
schedules & unschedules don't affect each other.

In the same vein, settings ought to be read at instantiation, not at
loading, otherwise, changing a setting in the FM, then switching to the
reader will not pick up the changes.
3 years ago
..
SSH.koplugin [chore] Change single quotes to double quotes (#6949) 4 years ago
autofrontlight.koplugin Tame BackgroundRunner: stop running when no more job (#6605) 4 years ago
autostandby.koplugin Input: Process input events in batches (#7483) 3 years ago
autosuspend.koplugin AutoSuspend: Unbreak scheduling & settings across instances 3 years ago
autoturn.koplugin Minor Input & TimeVal cleanups 3 years ago
backgroundrunner.koplugin Minor Input & TimeVal cleanups 3 years ago
batterystat.koplugin KeyValuePage: configurable items per page 3 years ago
calibre.koplugin Menu: Don't share the `dimen` object across Menu instances (!) 3 years ago
coverbrowser.koplugin The great Input/GestureDetector/TimeVal spring cleanup (a.k.a., a saner main loop) (#7415) 3 years ago
coverimage.koplugin Better strings (#7611) 3 years ago
docsettingtweak.koplugin [chore] Change single quotes to double quotes (#6949) 4 years ago
evernote.koplugin Unify LuaSocket usage (#7405) 3 years ago
gestures.koplugin Gestures menu optimization (#7609) 3 years ago
goodreads.koplugin Unify LuaSocket usage (#7405) 3 years ago
hello.koplugin [chore] Change single quotes to double quotes (#6949) 4 years ago
keepalive.koplugin Use PluginShare to share the keepalive state (#7416) 3 years ago
kosync.koplugin Screensaver: Unbreak screensaver_stretch_images (#7403) 3 years ago
movetoarchive.koplugin Standardize directory/folder to folder (#7328) 3 years ago
newsdownloader.koplugin Unify LuaSocket usage (#7405) 3 years ago
opds.koplugin Centralize one time migration code after updates (#7531) 3 years ago
perceptionexpander.koplugin LuaSettings: Add a method to initialize a setting properly (#7371) 3 years ago
profiles.koplugin [chore] Change single quotes to double quotes (#6949) 4 years ago
qrclipboard.koplugin [fix] Minor doc touchups re. QR encode (#6861) 4 years ago
readtimer.koplugin [i18n, plugins] ReadTimer - better plural forms (#5315) 5 years ago
send2ebook.koplugin Standardize directory/folder to folder (#7328) 3 years ago
statistics.koplugin Centralize one time migration code after updates (#7531) 3 years ago
systemstat.koplugin KeyValuePage: configurable items per page 3 years ago
terminal.koplugin LuaSettings: Add a method to initialize a setting properly (#7371) 3 years ago
texteditor.koplugin Text editor: option to show/hide keyboard on start (#7460) 3 years ago
timesync.koplugin Cleanup eye-gouging madness around io.read calls (#7149) 3 years ago
wallabag.koplugin Unify LuaSocket usage (#7405) 3 years ago
zsync.koplugin LuaSettings: Add a method to initialize a setting properly (#7371) 3 years ago