Skip to content

Commit

Permalink
Disabled hot reload for unquoted StaticResources
Browse files Browse the repository at this point in the history
Fixes #2
  • Loading branch information
Kir-Antipov committed Apr 6, 2024
1 parent 513a704 commit 6e1ffed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/HotAvalonia/Helpers/AvaloniaControlHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ public static void Clear(object? control)
/// <returns>The XAML markup with static resources replaced by their dynamic counterparts.</returns>
private static string MakeStaticComponentsDynamic(string xaml)
{
const string staticResourceName = "{StaticResource ";
const string dynamicResourceName = "{DynamicResource ";
const string staticResourceName = "\"{StaticResource ";
const string dynamicResourceName = "\"{DynamicResource ";

return xaml.Replace(staticResourceName, dynamicResourceName);
}
Expand Down

0 comments on commit 6e1ffed

Please sign in to comment.