Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
IeuanWalker authored and mattleibow committed Nov 5, 2024
1 parent 164408b commit 10732b2
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,9 @@
internal static class ResourceLoader<T>
where T : ResourceDictionary, new()
{
private static bool registered;

internal static void EnsureRegistered(VisualElement? element = null)
{
if (registered)
return;
bool registered = false;

// try register with the current app
var merged = Application.Current?.Resources?.MergedDictionaries;
Expand Down

0 comments on commit 10732b2

Please sign in to comment.