Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

SetTheme causing build failure #121

Closed
maestro-oc opened this issue May 11, 2022 · 1 comment
Closed

SetTheme causing build failure #121

maestro-oc opened this issue May 11, 2022 · 1 comment

Comments

@maestro-oc
Copy link

The file ListenTogetherComponent.razor in the Blazor folder of the maui project contains the following:

`private async Task UpdateWebThemeAsync()
{
var darkModeIsActive = Settings.Theme == AppTheme.Dark;
await ThemeInterop.SetTheme(darkModeIsActive ? Theme.Dark : Theme.Light);

}`

This is causing the build to fail. If I set SetTheme to SetThemeAsync all builds correctly.

`private async Task UpdateWebThemeAsync()
{
var darkModeIsActive = Settings.Theme == AppTheme.Dark;
await ThemeInterop.SetThemeAsync(darkModeIsActive ? Theme.Dark : Theme.Light);

}`
@migueBarrera
Copy link
Collaborator

Fixed in main.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants