Merge pull request #6634 from nextcloud/fix-devices-not-released-when-got-after-the-dialog-was-closed Fix devices not released when got after the dialog was closed