Browse Source

neon: prevent race condition on logout

pull/338/head
Nikolas Rimikis 2 years ago
parent
commit
d2192a50ef
No known key found for this signature in database
GPG Key ID: 85ED1DE9786A4FF2
  1. 8
      packages/neon/neon/lib/src/pages/home.dart

8
packages/neon/neon/lib/src/pages/home.dart

@ -197,8 +197,8 @@ class _HomePageState extends State<HomePage> {
builder: (final context) {
if (accountsSnapshot.hasData) {
final accounts = accountsSnapshot.data!;
final account = accounts.find(_account.id)!;
final account = accounts.find(_account.id);
if (account != null) {
final isQuickBar = navigationMode == NavigationMode.quickBar;
final drawer = Builder(
builder: (final context) => Drawer(
@ -543,7 +543,8 @@ class _HomePageState extends State<HomePage> {
Expanded(
child: Center(
child: Text(
AppLocalizations.of(context).errorNoCompatibleNextcloudAppsFound,
AppLocalizations.of(context)
.errorNoCompatibleNextcloudAppsFound,
textAlign: TextAlign.center,
),
),
@ -568,6 +569,7 @@ class _HomePageState extends State<HomePage> {
],
);
}
}
return Container();
},
),

Loading…
Cancel
Save