textviewer: bug-fix, don't add to self.layout title bar's menu if not present

This commit is contained in:
Commodore64user authored and David committed 2026-11-04 14:14:04 +00:00
1 parent 3d40440e7f
commit 46cdba2e76
1 file changed
+1 -1
+1 -1
View File
@@ -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()