Fix bug when downloading enclosure on "unknown" metered connection

Trying to download an enclosure on a connection with unknown metered
status would trigger the overlay sheet with actions.
This commit is contained in:
Bart De Vries 2021-10-28 23:38:15 +02:00
parent 5b15f4c7b9
commit c28739efeb
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ Kirigami.OverlaySheet {
// this is the function that should be called if the action should be
// triggered conditionally (on the basis that the condition is passed)
function run() {
if (NetworkStatus.metered === NetworkStatus.No || condition) {
if (NetworkStatus.metered !== NetworkStatus.Yes || condition) {
action();
} else {
overlay.open();