Skip to content

Commit 5156725

Browse files
committed
Fix options not working for Core
1 parent d8cf48d commit 5156725

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/CommunityToolkit.Maui/AppBuilderExtensions.shared.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ public static class AppBuilderExtensions
2424
/// <returns><see cref="MauiAppBuilder"/> initialized for <see cref="CommunityToolkit.Maui"/></returns>
2525
public static MauiAppBuilder UseMauiCommunityToolkit(this MauiAppBuilder builder, Action<Options>? options = null)
2626
{
27-
// Pass `null` because `options?.Invoke()` will set options on both `CommunityToolkit.Maui` and `CommunityToolkit.Maui.Core`
28-
builder.UseMauiCommunityToolkitCore(null);
29-
3027
// Invokes options for both `CommunityToolkit.Maui` and `CommunityToolkit.Maui.Core`
3128
options?.Invoke(new Options(builder));
3229

30+
// Pass `null` because `options?.Invoke()` will set options on both `CommunityToolkit.Maui` and `CommunityToolkit.Maui.Core`
31+
builder.UseMauiCommunityToolkitCore(null);
32+
3333
builder.Services.AddSingleton<IPopupService, PopupService>();
3434

3535
builder.ConfigureMauiHandlers(static h =>

0 commit comments

Comments
 (0)