mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-09 18:10:29 +00:00
feat: add auto-start incomplete tasks on application startup (#1203)
This commit is contained in:
1 parent
24db9bb58b
commit
71c9e6947a
13 files changed
+50
-8
No files matched your search
@@ -150,6 +150,25 @@ class SettingView extends GetView<SettingController> {
|
||||
);
|
||||
});
|
||||
|
||||
final buildAutoStartTasks = _buildConfigItem('autoStartTasks', () {
|
||||
return appController.downloaderConfig.value.extra.autoStartTasks
|
||||
? 'on'.tr
|
||||
: 'off'.tr;
|
||||
}, (Key key) {
|
||||
return Container(
|
||||
alignment: Alignment.centerLeft,
|
||||
child: Switch(
|
||||
value: appController.downloaderConfig.value.extra.autoStartTasks,
|
||||
onChanged: (bool value) async {
|
||||
appController.downloaderConfig.update((val) {
|
||||
val!.extra.autoStartTasks = value;
|
||||
});
|
||||
await debounceSave();
|
||||
},
|
||||
),
|
||||
);
|
||||
});
|
||||
|
||||
// Archive auto extract configuration
|
||||
final buildAutoExtract = _buildConfigItem('autoExtract', () {
|
||||
return appController.downloaderConfig.value.archive.autoExtract
|
||||
@@ -1394,6 +1413,7 @@ class SettingView extends GetView<SettingController> {
|
||||
buildDownloadCategories(),
|
||||
buildMaxRunning(),
|
||||
buildDefaultDirectDownload(),
|
||||
buildAutoStartTasks(),
|
||||
buildBrowserExtension(),
|
||||
buildAutoStartup(),
|
||||
buildMenubarMode(),
|
||||
|
||||
Reference in new issue
Block a user