private void RPCCheckBox_CheckedChanged(object sender, RoutedEventArgs e) { if (Properties.Settings.MySettings.ShowDiscordRPC == false) { RPCCheckBox.IsChecked = true; Properties.Settings.MySettings.ShowDiscordRPC = true; DiscordRP.UpdateDiscord(ManiacEditor.Methods.Solution.SolutionPaths.SceneFile_Source.ToString()); } else { RPCCheckBox.IsChecked = false; Properties.Settings.MySettings.ShowDiscordRPC = false; DiscordRP.UpdateDiscord(); } }
public static void SetupDiscordRP(string SceneFile) { DiscordRP.UpdateDiscord(SceneFile); }