Skip to content

Commit cb19d2e

Browse files
committed
🐛 Fix a type issue
1 parent b7221ff commit cb19d2e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/rogallo/screens/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def check_action(self, action: str, parameters: tuple[object, ...]) -> bool | No
250250
if action == CopyDocumentToClipboard.action_name():
251251
return bool(self._viewer.document)
252252
if action == ToggleView.action_name():
253-
return self._viewer.document and self._viewer.is_viewing_gemtext
253+
return bool(self._viewer.document) and self._viewer.is_viewing_gemtext
254254
return True
255255

256256
async def _handle_input_request(self, location: GeminiURI, sensitive: bool) -> None:

0 commit comments

Comments
 (0)