merge main

This commit is contained in:
shenlong-tanwen
2026-05-14 01:11:26 +05:30
480 changed files with 19769 additions and 4914 deletions
@@ -74,6 +74,9 @@ class _AlbumSyncActionButtonState extends ConsumerState<_AlbumSyncActionButton>
} catch (_) {
} finally {
Future.delayed(const Duration(seconds: 1), () {
if (!mounted) {
return;
}
setState(() {
isAlbumSyncInProgress = false;
});
@@ -80,7 +80,9 @@ class _FreeUpSpaceSettingsState extends ConsumerState<FreeUpSpaceSettings> {
bool _isPresetSelected(int? daysAgo) {
final state = ref.read(cleanupProvider);
if (state.selectedDate == null) return false;
if (state.selectedDate == null) {
return false;
}
final expectedDate = daysAgo != null ? DateTime.now().subtract(Duration(days: daysAgo)) : DateTime(2000);
@@ -29,7 +29,9 @@ class SettingsSwitchListTile extends StatelessWidget {
@override
Widget build(BuildContext context) {
void onSwitchChanged(bool value) {
if (!enabled) return;
if (!enabled) {
return;
}
valueNotifier.value = value;
onChanged?.call(value);