add fallback if opening a link fails
This commit is contained in:
parent
98e7edd420
commit
9a8a54c4a3
1 changed files with 20 additions and 7 deletions
|
|
@ -48,7 +48,7 @@ class const SelectServerPage({super.key}) extends HookConsumerWidget {
|
|||
Future<void> tryLogin(Uri url) async {
|
||||
final OAuthAuthCodeResponse codeResponse;
|
||||
try {
|
||||
codeResponse = await ref.watch(
|
||||
codeResponse = await ref.read(
|
||||
AuthUrlController.provider(url).future,
|
||||
);
|
||||
} on GomuksException catch (error) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue