mirror of https://github.com/KDE/kasts.git
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:
parent
5b15f4c7b9
commit
c28739efeb
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue