Esempio n. 1
0
        private void ActivateConfig(IController ctrlr, Skin skin)
        {
            EndSkinPreview();
            if (skin?.LoadResult != SkinLoadResult.Ok)
            {
                return;
            }

            skin.Activate();
            // apply remap if it was previously selected
            if (skin is SvgSkin svg && ConfigManager.SelectedRemaps[svg] is ColorRemap rmp)
            {
                rmp.ApplyToSkin(svg);
            }