diff --git a/lib/ui/gallery_app_bar_widget.dart b/lib/ui/gallery_app_bar_widget.dart index 6bd7f852a..7cc27d726 100644 --- a/lib/ui/gallery_app_bar_widget.dart +++ b/lib/ui/gallery_app_bar_widget.dart @@ -1,6 +1,7 @@ import 'dart:async'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; +import 'package:photos/core/configuration.dart'; import 'package:photos/core/event_bus.dart'; import 'package:photos/db/photo_db.dart'; import 'package:photos/events/remote_sync_event.dart'; @@ -72,9 +73,11 @@ class _GalleryAppBarWidgetState extends State { List _getDefaultActions(BuildContext context) { List actions = List(); - if (_hasSyncErrors) { + if (_hasSyncErrors || !Configuration.instance.hasConfiguredAccount()) { actions.add(IconButton( - icon: Icon(Icons.sync_problem), + icon: Icon(Configuration.instance.hasConfiguredAccount() + ? Icons.sync_problem + : Icons.sync_disabled), onPressed: () { _openSyncConfiguration(context); },