Add a reset to default button to discord bot section.

Added Discord Bot section to the profile sync list.
This commit is contained in:
Brett Hewitson 2021-12-18 12:17:58 +10:00
parent fd0c04db9d
commit a6f2b6f912
19 changed files with 254 additions and 118 deletions

View file

@ -26,20 +26,6 @@ using WPFSharp.Globalizer;
namespace ServerManagerTool
{
public enum ServerSettingsResetAction
{
// Sections
AdministrationSection,
// Properties
RconWindowExtents,
PlayerMaxXpProperty,
ServerOptions,
}
/// <summary>
/// Interaction logic for ServerSettings.xaml
/// </summary>
partial class ServerSettingsControl : UserControl
{
private readonly GlobalizedApplication _globalizer = GlobalizedApplication.Instance;
@ -1354,6 +1340,9 @@ namespace ServerManagerTool
RefreshServerRegionsList();
break;
case ServerSettingsResetAction.DiscordBotSection:
this.Settings.ResetDiscordBotSection();
break;
// Properties
case ServerSettingsResetAction.RconWindowExtents: