Skip to content

Commit

Permalink
usb: Reset the state when cancelling
Browse files Browse the repository at this point in the history
Signed-off-by: Hubert Figuière <[email protected]>
  • Loading branch information
hfiguiere committed Aug 15, 2024
1 parent 6de90f1 commit 19df3c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1055,6 +1055,10 @@ usb_access_devices_cb (GObject *source_object,
g_clear_pointer (&options, g_variant_unref);
}
}
else if (response == XDG_DESKTOP_PORTAL_RESPONSE_CANCELLED)
{
sender_info->sender_state = USB_SENDER_STATE_DEFAULT;
}

out:
if (request->exported)
Expand Down

0 comments on commit 19df3c5

Please sign in to comment.