Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

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.dart
index 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: () {