chore: Fixes from review

pull/440/head
Inex Code 2024-02-23 17:49:10 +03:00
parent 160e6d3b35
commit 275e8b1f40
2 changed files with 2 additions and 25 deletions

View File

@ -131,7 +131,7 @@ class BackupsInitialized extends BackupsState {
final List<Backup> list = _backupList;
list.sort((final a, final b) => b.time.compareTo(a.time));
return list;
} on UnsupportedError {
} catch (_) {
return _backupList;
}
}

View File

@ -419,30 +419,7 @@ class BackupDetailsPage extends StatelessWidget {
.read<BackupsBloc>()
.add(const ForceSnapshotListUpdate()),
),
const SizedBox(height: 8),
const Divider(),
const SizedBox(height: 8),
ListTile(
title: Text(
'backup.reupload_key'.tr(),
style: TextStyle(
color: overrideColor,
),
),
subtitle: Text(
'backup.reupload_key_subtitle'.tr(),
style: TextStyle(
color: overrideColor,
),
),
leading: Icon(
Icons.warning_amber_outlined,
color: overrideColor,
),
// onTap: preventActions
// ? null
// : () => context.read<BackupsCubit>().reuploadKey(),
),
// TODO: Return reupload key button in some form
],
),
],