@@ -167,9 +167,9 @@ function pocket.init_nav(smem)
|
|||||||
-- configure the sidebar
|
-- configure the sidebar
|
||||||
---@param items sidebar_entry[]
|
---@param items sidebar_entry[]
|
||||||
function app.set_sidebar(items)
|
function app.set_sidebar(items)
|
||||||
|
app.sidebar_items = items
|
||||||
-- only modify the sidebar if this app is still open
|
-- only modify the sidebar if this app is still open
|
||||||
if self.cur_app == app_id then
|
if self.cur_app == app_id then
|
||||||
app.sidebar_items = items
|
|
||||||
if self.sidebar then self.sidebar.update(items) end
|
if self.sidebar then self.sidebar.update(items) end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ local pocket = require("pocket.pocket")
|
|||||||
local renderer = require("pocket.renderer")
|
local renderer = require("pocket.renderer")
|
||||||
local threads = require("pocket.threads")
|
local threads = require("pocket.threads")
|
||||||
|
|
||||||
local POCKET_VERSION = "v0.12.4-alpha"
|
local POCKET_VERSION = "v0.12.5-alpha"
|
||||||
|
|
||||||
local println = util.println
|
local println = util.println
|
||||||
local println_ts = util.println_ts
|
local println_ts = util.println_ts
|
||||||
|
|||||||
Reference in New Issue
Block a user