public override void OnClicked(Page_ModsConfig window) { ModMetaData modWithIdentifier = ModLister.GetModWithIdentifier(packageId, ignorePostfix: true); if (modWithIdentifier != null && modWithIdentifier.Active) { window.SelectMod(modWithIdentifier); } }
public override void OnClicked(Page_ModsConfig window) { ModMetaData modWithIdentifier = ModLister.GetModWithIdentifier(packageId, ignorePostfix: true); if (modWithIdentifier == null) { if (!Url.NullOrEmpty()) { SteamUtility.OpenUrl(Url); } } else if (!modWithIdentifier.Active) { window.SelectMod(modWithIdentifier); } }