mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
Gatekeep channel selection
👍
This commit is contained in:
parent
1e8a4359d7
commit
ee8f583bae
@ -52,18 +52,6 @@
|
||||
return _baseUrl;
|
||||
}
|
||||
}
|
||||
|
||||
// most commonly used/interesting channels
|
||||
public static readonly List<string> SelectableChannels = new()
|
||||
{
|
||||
"LIVE",
|
||||
"ZFlag",
|
||||
"ZNext",
|
||||
"ZCanary",
|
||||
"ZIntegration",
|
||||
"ZAvatarTeam",
|
||||
"ZSocialTeam"
|
||||
};
|
||||
#endregion
|
||||
|
||||
public static string GetLocation(string resource, string? channel = null)
|
||||
|
@ -46,7 +46,7 @@
|
||||
<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}" />
|
||||
</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>
|
||||
</ui:CardExpander.Header>
|
||||
|
||||
|
@ -81,18 +81,12 @@
|
||||
set => App.Settings.Prop.CheckForUpdates = value;
|
||||
}
|
||||
|
||||
public IEnumerable<string> 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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user