#552 only modify sidebar if app is open
This commit is contained in:
@@ -167,8 +167,11 @@ 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
|
||||||
if self.sidebar then self.sidebar.update(items) end
|
if self.cur_app == app_id then
|
||||||
|
app.sidebar_items = items
|
||||||
|
if self.sidebar then self.sidebar.update(items) end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- function to run on initial load into memory
|
-- function to run on initial load into memory
|
||||||
|
|||||||
Reference in New Issue
Block a user