Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/rogallo/screens/main/unsupported.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async def maybe_open_unsupported_uri(
return

# If the scheme isn't trusted, let's see what the user wants to do about it.
if not (open_uri := scheme in (trusted_schemes := load_trusted_schemes())):
if not (open_uri := (scheme in (trusted_schemes := load_trusted_schemes()))):
match await owner.app.push_screen_wait(
ConfirmUnsupportedURI(
message.uri,
Expand Down Expand Up @@ -93,8 +93,9 @@ async def maybe_open_unsupported_mime_type(
# If the MIME type isn't trusted, let's see what the user wants to
# do about it.
if not (
open_uri := message.mime_type
in (trusted_mime_types := load_trusted_mime_types())
open_uri := (
message.mime_type in (trusted_mime_types := load_trusted_mime_types())
)
):
match await owner.app.push_screen_wait(
ConfirmUnsupportedURI(
Expand Down
Loading