Watch
1
0
Fork
You've already forked nexus
0
forked from Nexus/nexus

various small fixups

This commit is contained in:
Henry Hiles 2026-09-22 15:53:37 -04:00
commit a2791a6717
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
4 changed files with 16 additions and 20 deletions

View file

@ -78,9 +78,11 @@ class const SelectServerPage({super.key}) extends HookConsumerWidget {
ClientIdController.provider(url).future,
),
),
)
.onError(showError);
);
}
} catch (error, stackTrace) {
showError(error, stackTrace);
rethrow;
} finally {
isLoading.value = false;
}
@ -95,7 +97,7 @@ class const SelectServerPage({super.key}) extends HookConsumerWidget {
style: .new(color: theme.colorScheme.onErrorContainer),
),
action: SnackBarAction(
onPressed: () => tryLogin(newHomeserver!),
onPressed: () => tryLogin(newHomeserver!).onError(showError),
label: "Attempt log in anyways",
textColor: theme.colorScheme.onErrorContainer,
),
@ -103,11 +105,12 @@ class const SelectServerPage({super.key}) extends HookConsumerWidget {
),
);
} else {
tryLogin(newUrl);
await tryLogin(newUrl);
}
}
} catch (error, stackTrace) {
showError(error, stackTrace);
rethrow;
} finally {
isLoading.value = false;
}