Remove some default system commands that aren't particular useful for this app.

This commit is contained in:
Dan Helfman
2026-06-01 12:59:52 -07:00
parent d29cfaf227
commit 3e7e7879bc
+12
View File
@@ -43,6 +43,18 @@ class Browse_app(textual.app.App):
super().__init__()
def get_system_commands(self, screen): # pragma: no cover
'''
Remove the screenshot system command because it produces broken screenshots. (Emoji
weirdness, etc.) Also remove minimize and maximize because they don't accomplish much with
out particular layout.
'''
yield from (
command
for command in super().get_system_commands(screen)
if command.title not in {'Screenshot', 'Minimize', 'Maximize'}
)
def compose(self):
'''
Compose a UI consisting of: