mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-17 14:19:16 +00:00
refactor: Rename isTherePendingChange to isVolumePicked on migration page
This commit is contained in:
parent
2279ebf47f
commit
e4c5220fb4
|
@ -55,7 +55,7 @@ class _ServicesMigrationPageState extends State<ServicesMigrationPage> {
|
|||
});
|
||||
}
|
||||
|
||||
bool get isTherePendingChange {
|
||||
bool get isVolumePicked {
|
||||
bool isChangeFound = false;
|
||||
for (final Service service in widget.services) {
|
||||
for (final String serviceId in serviceToDisk.keys) {
|
||||
|
@ -171,8 +171,7 @@ class _ServicesMigrationPageState extends State<ServicesMigrationPage> {
|
|||
),
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
if (widget.isMigration ||
|
||||
(!widget.isMigration && isTherePendingChange))
|
||||
if (widget.isMigration || (!widget.isMigration && isVolumePicked))
|
||||
BrandButton.filled(
|
||||
child: Text('storage.start_migration_button'.tr()),
|
||||
onPressed: () {
|
||||
|
|
Loading…
Reference in a new issue