We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d34f4a4 commit 5161cbcCopy full SHA for 5161cbc
src/textual/widgets/_header.py
@@ -33,7 +33,10 @@ class HeaderIcon(Widget):
33
"""The character to use as the icon within the header."""
34
35
def on_mount(self) -> None:
36
- self.tooltip = "Open the command palette"
+ if self.app.ENABLE_COMMAND_PALETTE:
37
+ self.tooltip = "Open the command palette"
38
+ else:
39
+ self.disabled = True
40
41
async def on_click(self, event: Click) -> None:
42
"""Launch the command palette when icon is clicked."""
0 commit comments