refactor: Rename isTherePendingChange to isVolumePicked on migration page

pull/293/head
NaiJi ✨ 2023-08-11 10:21:27 -03:00
parent 2279ebf47f
commit e4c5220fb4
1 changed files with 2 additions and 3 deletions

View File

@ -55,7 +55,7 @@ class _ServicesMigrationPageState extends State<ServicesMigrationPage> {
}); });
} }
bool get isTherePendingChange { bool get isVolumePicked {
bool isChangeFound = false; bool isChangeFound = false;
for (final Service service in widget.services) { for (final Service service in widget.services) {
for (final String serviceId in serviceToDisk.keys) { for (final String serviceId in serviceToDisk.keys) {
@ -171,8 +171,7 @@ class _ServicesMigrationPageState extends State<ServicesMigrationPage> {
), ),
), ),
const SizedBox(height: 16), const SizedBox(height: 16),
if (widget.isMigration || if (widget.isMigration || (!widget.isMigration && isVolumePicked))
(!widget.isMigration && isTherePendingChange))
BrandButton.filled( BrandButton.filled(
child: Text('storage.start_migration_button'.tr()), child: Text('storage.start_migration_button'.tr()),
onPressed: () { onPressed: () {