Gatekeep channel selection

👍
This commit is contained in:
pizzaboxer 2023-08-23 10:35:10 +01:00
parent 1e8a4359d7
commit ee8f583bae
No known key found for this signature in database
GPG Key ID: 59D4A1DBAD0F2BA8
3 changed files with 1 additions and 19 deletions

View File

@ -52,18 +52,6 @@
return _baseUrl; return _baseUrl;
} }
} }
// most commonly used/interesting channels
public static readonly List<string> SelectableChannels = new()
{
"LIVE",
"ZFlag",
"ZNext",
"ZCanary",
"ZIntegration",
"ZAvatarTeam",
"ZSocialTeam"
};
#endregion #endregion
public static string GetLocation(string resource, string? channel = null) public static string GetLocation(string resource, string? channel = null)

View File

@ -46,7 +46,7 @@
<TextBlock FontSize="14" Text="Channel" /> <TextBlock FontSize="14" Text="Channel" />
<TextBlock Margin="0,2,0,0" FontSize="12" Text="Choose which deployment channel Roblox should be downloaded from." Foreground="{DynamicResource TextFillColorTertiaryBrush}" /> <TextBlock Margin="0,2,0,0" FontSize="12" Text="Choose which deployment channel Roblox should be downloaded from." Foreground="{DynamicResource TextFillColorTertiaryBrush}" />
</StackPanel> </StackPanel>
<ComboBox Grid.Column="1" Margin="8,0,8,0" Padding="10,5,10,5" Width="200" IsEditable="True" ItemsSource="{Binding Channels, Mode=OneWay}" Text="{Binding SelectedChannel, Mode=TwoWay, Delay=250}" /> <ui:TextBox Grid.Column="1" Margin="8,0,8,0" Padding="10,5,10,5" Width="200" Text="{Binding SelectedChannel, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Delay=250}" />
</Grid> </Grid>
</ui:CardExpander.Header> </ui:CardExpander.Header>

View File

@ -81,18 +81,12 @@
set => App.Settings.Prop.CheckForUpdates = value; set => App.Settings.Prop.CheckForUpdates = value;
} }
public IEnumerable<string> Channels => RobloxDeployment.SelectableChannels;
public string SelectedChannel public string SelectedChannel
{ {
get => App.Settings.Prop.Channel; get => App.Settings.Prop.Channel;
set set
{ {
value = value.Trim(); value = value.Trim();
if (String.IsNullOrEmpty(value))
value = RobloxDeployment.DefaultChannel;
Task.Run(() => LoadChannelDeployInfo(value)); Task.Run(() => LoadChannelDeployInfo(value));
App.Settings.Prop.Channel = value; App.Settings.Prop.Channel = value;
} }