Fix default skin potentially added twice in `RulesetSkinProvidingContainer`

This commit is contained in:
Salman Ahmed 2021-06-22 03:45:43 +03:00
parent 627c857da8
commit caa90bccc6
1 changed files with 2 additions and 1 deletions

View File

@ -80,7 +80,8 @@ protected virtual void UpdateSkins()
break;
}
SkinSources.Add(skinManager.DefaultSkin);
if (skinManager.CurrentSkin.Value != skinManager.DefaultSkin)
SkinSources.Add(skinManager.DefaultSkin);
}
protected ISkin GetLegacyRulesetTransformedSkin(ISkin legacySkin)