Skip to content

Commit 10b6c24

Browse files
authored
Merge pull request #397 from Scriptbash/login-message
Hide login text from sync screen when logged in
2 parents dcab2f3 + d07d310 commit 10b6c24

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

lib/screens/sync_screen.dart

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -138,15 +138,15 @@ class _SyncSettingsScreenState extends State<SyncSettingsScreen> {
138138
body: ListView(
139139
padding: const EdgeInsets.all(16),
140140
children: [
141-
Text(
142-
AppLocalizations.of(context)!.loginToSyncDevices,
143-
textAlign: TextAlign.center,
144-
style: TextStyle(fontWeight: FontWeight.bold, fontSize: 18),
145-
),
146-
SizedBox(
147-
height: 16,
148-
),
149141
if (!pbService.isAuthenticated) ...[
142+
Text(
143+
AppLocalizations.of(context)!.loginToSyncDevices,
144+
textAlign: TextAlign.center,
145+
style: TextStyle(fontWeight: FontWeight.bold, fontSize: 18),
146+
),
147+
SizedBox(
148+
height: 16,
149+
),
150150
SyncAuthForm(
151151
onLoginSuccess: () {
152152
setState(() {});

0 commit comments

Comments
 (0)