diff --git a/lib/ui/backup_folder_selection_page.dart b/lib/ui/backup_folder_selection_page.dart index b16ddf258..83fdfae38 100644 --- a/lib/ui/backup_folder_selection_page.dart +++ b/lib/ui/backup_folder_selection_page.dart @@ -10,9 +10,11 @@ import 'package:photos/ui/thumbnail_widget.dart'; class BackupFolderSelectionPage extends StatefulWidget { final bool shouldSelectAll; + final String buttonText; - const BackupFolderSelectionPage( - this.shouldSelectAll, { + const BackupFolderSelectionPage({ + @required this.shouldSelectAll, + @required this.buttonText, Key key, }) : super(key: key); @@ -106,7 +108,7 @@ class _BackupFolderSelectionPageState extends State { child: Container( padding: EdgeInsets.only(left: 60, right: 60, bottom: 32), child: button( - "start backup", + widget.buttonText, fontSize: 18, onPressed: _backedupFolders.length == 0 ? null diff --git a/lib/ui/home_widget.dart b/lib/ui/home_widget.dart index 3c0e229c1..b255362c7 100644 --- a/lib/ui/home_widget.dart +++ b/lib/ui/home_widget.dart @@ -349,7 +349,12 @@ class _HomeWidgetState extends State { .hasGrantedLimitedPermissions()) { PhotoManager.presentLimited(); } else { - routeToPage(context, BackupFolderSelectionPage()); + routeToPage( + context, + BackupFolderSelectionPage( + shouldSelectAll: true, + buttonText: "start backup", + )); } }, ), diff --git a/lib/ui/loading_photos_widget.dart b/lib/ui/loading_photos_widget.dart index 4174c44b7..e5b2779b0 100644 --- a/lib/ui/loading_photos_widget.dart +++ b/lib/ui/loading_photos_widget.dart @@ -42,7 +42,12 @@ class _LoadingPhotosWidgetState extends State { if (LocalSyncService.instance.hasGrantedLimitedPermissions()) { // Do nothing, let HomeWidget refresh } else { - routeToPage(context, BackupFolderSelectionPage(true)); + routeToPage( + context, + BackupFolderSelectionPage( + shouldSelectAll: true, + buttonText: "start backup", + )); } } });