mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-19 05:00:21 +02:00
@@ -74,11 +74,6 @@ class AppsPageState extends State<AppsPage> {
|
||||
setState(() {
|
||||
refreshingSince = null;
|
||||
});
|
||||
if (settingsProvider.autoExportOnUpdateCheckKeepNum > 0) {
|
||||
appsProvider.exportApps(isAuto: true).then((value) {
|
||||
appsProvider.trimAutoExports();
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
@@ -337,36 +337,19 @@ class _ImportExportPageState extends State<ImportExportPage> {
|
||||
GeneratedForm(
|
||||
items: [
|
||||
[
|
||||
GeneratedFormTextField(
|
||||
'autoExportOnUpdateCheckKeepNum',
|
||||
label: tr(
|
||||
'autoExportOnUpdateCheckKeepNum'),
|
||||
required: false,
|
||||
defaultValue: settingsProvider
|
||||
.autoExportOnUpdateCheckKeepNum
|
||||
.toString(),
|
||||
textInputType: const TextInputType
|
||||
.numberWithOptions(),
|
||||
additionalValidators: [
|
||||
(value) {
|
||||
value ??= settingsProvider
|
||||
.autoExportOnUpdateCheckKeepNum
|
||||
.toString();
|
||||
return intValidator(value,
|
||||
positive: true);
|
||||
}
|
||||
])
|
||||
GeneratedFormSwitch(
|
||||
'autoExportOnChanges',
|
||||
label: tr('autoExportOnChanges'),
|
||||
defaultValue:
|
||||
settingsProvider.autoExportOnChanges,
|
||||
)
|
||||
]
|
||||
],
|
||||
onValueChanges: (value, valid, isBuilding) {
|
||||
if (valid && !isBuilding) {
|
||||
if (value[
|
||||
'autoExportOnUpdateCheckKeepNum'] !=
|
||||
null) {
|
||||
settingsProvider
|
||||
.autoExportOnUpdateCheckKeepNum =
|
||||
int.parse(value[
|
||||
'autoExportOnUpdateCheckKeepNum']);
|
||||
if (value['autoExportOnChanges'] != null) {
|
||||
settingsProvider.autoExportOnChanges =
|
||||
value['autoExportOnChanges'] == true;
|
||||
}
|
||||
}
|
||||
}),
|
||||
|
Reference in New Issue
Block a user