mirror of
https://ghfast.top/https://github.com/StarCitizenToolBox/app.git
synced 2025-06-28 10:14:45 +08:00
saveSession when cancelTask
This commit is contained in:
@ -167,6 +167,7 @@ class DownloaderUIModel extends BaseUIModel {
|
|||||||
if (ok == true) {
|
if (ok == true) {
|
||||||
final aria2c = Aria2cManager.getClient();
|
final aria2c = Aria2cManager.getClient();
|
||||||
await aria2c.remove(gid);
|
await aria2c.remove(gid);
|
||||||
|
await Aria2cManager.getClient().saveSession();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user