mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 00:11:37 -06:00
feat(koreader): add system action to open dashboard in koreader plugin
Closes #449
This commit is contained in:
@@ -265,7 +265,9 @@ function BookOrbit:onDispatcherRegisterActions()
|
||||
Dispatcher:registerAction("bookorbit_push_progress",
|
||||
{ category = "none", event = "BookOrbitPushProgress", title = _("BookOrbit: push progress"), reader = true })
|
||||
Dispatcher:registerAction("bookorbit_pull_progress",
|
||||
{ category = "none", event = "BookOrbitPullProgress", title = _("BookOrbit: pull progress"), reader = true, separator = true })
|
||||
{ category = "none", event = "BookOrbitPullProgress", title = _("BookOrbit: pull progress"), reader = true })
|
||||
Dispatcher:registerAction("bookorbit_open_dashboard",
|
||||
{ category = "none", event = "BookOrbitOpenDashboard", title = _("BookOrbit: open dashboard"), general = true, separator = true })
|
||||
end
|
||||
|
||||
function BookOrbit:onReaderReady()
|
||||
@@ -1128,6 +1130,10 @@ function BookOrbit:onBookOrbitSyncNow()
|
||||
self:startSweep()
|
||||
end
|
||||
|
||||
function BookOrbit:onBookOrbitOpenDashboard()
|
||||
self:browseCatalog(false)
|
||||
end
|
||||
|
||||
function BookOrbit:onBookOrbitToggleAutoSync(toggle, from_menu)
|
||||
if toggle == self.settings.auto_sync then
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user