View Single Post
  #5  
Old 23.03.2021, 05:15
plaintext plaintext is offline
BugMeNot Account
 
Join Date: Sep 2016
Posts: 241
Default

Quote:
Originally Posted by mgpai View Post
Code:
/*
    Trigger : A Download Started
*/

while (link.isRunning() && link.getBytesTotal() == -1) {
    sleep(1000);
}

if (link.getBytesTotal() >= 1024 * 1024 * 20) {
    link.setEnabled(false);
}

Thank you
Reply With Quote