Skip to content

Commit

Permalink
Merge pull request #283 from humhub/270-cant-access-remembered-site-v2
Browse files Browse the repository at this point in the history
onSelectNetwork use manifest startUrl
  • Loading branch information
marc-farre authored Feb 23, 2025
2 parents 9145528 + b923d18 commit 0ab029f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pages/opener/opener.dart
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,13 @@ class OpenerPageState extends ConsumerState<OpenerPage> with SingleTickerProvide
opacity: ref.watch(textFieldVisibilityProvider) ? 1.0 : 0.0,
duration: const Duration(milliseconds: 250),
child: LastLoginWidget(
history: ref.watch(humHubProvider).history,
onAddNetwork: () {
ref.watch(searchBarVisibilityNotifier.notifier).toggleVisibility();
},
history: ref.watch(humHubProvider).history,
onSelectNetwork: (Manifest manifest) async {
UniversalOpenerController uniOpen =
UniversalOpenerController(url: manifest.baseUrl);
UniversalOpenerController(url: manifest.startUrl);
await uniOpen.initHumHub();
// Always pop the current instance and init the new one.
LoadingProvider.of(ref).dismissAll();
Expand Down

0 comments on commit 0ab029f

Please sign in to comment.