mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
PluginLoader: Allow querying whether a specific plugin is loaded (#7607)
* PluginLoader: Allow querying whether a specific plugin is loaded (instantiated, actually). Re #7598 * PluginLoader: Add a method to access a specific Plugin's instance (Besides `self.ui[plugin_name]`, that is). Requires some nastiness to avoid pinning stale references in memory :s. * PluginLoader: Tweak genPluginManagerSubItem to keep from rebuilding `self.all_plugins`, it's using `loadPlugins`, which is cached, so it made no sense to re-compute this one.
This commit is contained in:
@@ -699,6 +699,7 @@ end
|
||||
|
||||
function ReaderUI:onClose(full_refresh)
|
||||
logger.dbg("closing reader")
|
||||
PluginLoader:finalize()
|
||||
Device:notifyBookState(nil, nil)
|
||||
if full_refresh == nil then
|
||||
full_refresh = true
|
||||
|
||||
Reference in New Issue
Block a user