mirror of
https://github.com/koreader/koreader.git
synced 2026-12-02 10:12:42 +00:00
textviewer: bug-fix, don't add to self.layout title bar's menu if not present
This commit is contained in:
1 parent
3d40440e7f
commit
46cdba2e76
1 file changed
+1
-1
@@ -403,7 +403,7 @@ function TextViewer:init(reinit)
|
||||
}
|
||||
|
||||
-- NT: add titlebar.left_button (hamburger menu) to FocusManager.
|
||||
if Device:hasDPad() and not (Device:hasSymKey() or Device:hasScreenKB()) then
|
||||
if self.titlebar.left_button and Device:hasDPad() and not (Device:hasSymKey() or Device:hasScreenKB()) then
|
||||
table.insert(self.button_table.layout, 1, { self.titlebar.left_button })
|
||||
-- Refocus on the updated layout
|
||||
self.button_table:refocusWidget()
|
||||
|
||||
Reference in new issue
Block a user