internal ConfigProfileWindow(DiscordPlugin plugin, ConfigProfile profile) { this.Plugin = plugin ?? new DiscordPlugin(); this.OriginalProfile = profile; this.Profile = profile.Clone(); this.Profile.CommitChanges(); InitializeComponent(); if (plugin.BetaEnabled) { Title = $"{Title} {ResourceUtils.GetResourceString(this.Resources, "Global_BetaModeLabel")}"; } this.DataContext = this; }