From ee8f583bae9f83cf61a05c601b45e0691a610e32 Mon Sep 17 00:00:00 2001 From: pizzaboxer Date: Wed, 23 Aug 2023 10:35:10 +0100 Subject: [PATCH] Gatekeep channel selection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 👍 --- Bloxstrap/RobloxDeployment.cs | 12 ------------ Bloxstrap/UI/Elements/Menu/Pages/BehaviourPage.xaml | 2 +- Bloxstrap/UI/ViewModels/Menu/BehaviourViewModel.cs | 6 ------ 3 files changed, 1 insertion(+), 19 deletions(-) diff --git a/Bloxstrap/RobloxDeployment.cs b/Bloxstrap/RobloxDeployment.cs index 598812c..cdeda88 100644 --- a/Bloxstrap/RobloxDeployment.cs +++ b/Bloxstrap/RobloxDeployment.cs @@ -52,18 +52,6 @@ return _baseUrl; } } - - // most commonly used/interesting channels - public static readonly List SelectableChannels = new() - { - "LIVE", - "ZFlag", - "ZNext", - "ZCanary", - "ZIntegration", - "ZAvatarTeam", - "ZSocialTeam" - }; #endregion public static string GetLocation(string resource, string? channel = null) diff --git a/Bloxstrap/UI/Elements/Menu/Pages/BehaviourPage.xaml b/Bloxstrap/UI/Elements/Menu/Pages/BehaviourPage.xaml index 1e4b4aa..68bdc7b 100644 --- a/Bloxstrap/UI/Elements/Menu/Pages/BehaviourPage.xaml +++ b/Bloxstrap/UI/Elements/Menu/Pages/BehaviourPage.xaml @@ -46,7 +46,7 @@ - + diff --git a/Bloxstrap/UI/ViewModels/Menu/BehaviourViewModel.cs b/Bloxstrap/UI/ViewModels/Menu/BehaviourViewModel.cs index da81ace..28c4bc7 100644 --- a/Bloxstrap/UI/ViewModels/Menu/BehaviourViewModel.cs +++ b/Bloxstrap/UI/ViewModels/Menu/BehaviourViewModel.cs @@ -81,18 +81,12 @@ set => App.Settings.Prop.CheckForUpdates = value; } - public IEnumerable Channels => RobloxDeployment.SelectableChannels; - public string SelectedChannel { get => App.Settings.Prop.Channel; set { value = value.Trim(); - - if (String.IsNullOrEmpty(value)) - value = RobloxDeployment.DefaultChannel; - Task.Run(() => LoadChannelDeployInfo(value)); App.Settings.Prop.Channel = value; }