Skip to content

Commit

Permalink
Fix a bug when cancelling filechooser
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacalz committed Mar 15, 2024
1 parent 4fe82fc commit 33ae353
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions filechooser/filechooser.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ func readURIFromResponse(conn *dbus.Conn, call *dbus.Call) ([]string, error) {
result, err := apis.ReadResponse(conn, call)
if err != nil {
return nil, err
} else if result == nil {
return nil, nil // Cancelled by the user.
}

uris, ok := result["uris"].Value().([]string)
Expand Down

0 comments on commit 33ae353

Please sign in to comment.