π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Hide logout action when logged out
Neeraj Guptafb84859f2a7c
diff --git a/mobile/apps/photos/lib/ui/tools/lock_screen.dart b/mobile/apps/photos/lib/ui/tools/lock_screen.dartindex a67d0d203b..487a6d9ac8 100644--- a/mobile/apps/photos/lib/ui/tools/lock_screen.dart+++ b/mobile/apps/photos/lib/ui/tools/lock_screen.dart@@ -64,13 +64,15 @@ class _LockScreenState extends State<LockScreen>return Scaffold(appBar: AppBar(elevation: 0,- leading: IconButton(- icon: const Icon(Icons.logout_outlined),- color: Theme.of(context).iconTheme.color,- onPressed: () {- _onLogoutTapped(context);- },- ),+ leading: Configuration.instance.isLoggedIn()+ ? IconButton(+ icon: const Icon(Icons.logout_outlined),+ color: Theme.of(context).iconTheme.color,+ onPressed: () {+ _onLogoutTapped(context);+ },+ )+ : const SizedBox.shrink(),),body: GestureDetector(onTap: () {