mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
Show channel name if not in predefined lists
This commit is contained in:
parent
45f760bc14
commit
3927d58290
@ -76,7 +76,13 @@ namespace Bloxstrap.ViewModels
|
||||
|
||||
public IEnumerable<string> Channels
|
||||
{
|
||||
get => _channels;
|
||||
get
|
||||
{
|
||||
if (_channels == DeployManager.ChannelsAll && !_channels.Contains(App.Settings.Prop.Channel))
|
||||
_channels = _channels.Append(App.Settings.Prop.Channel);
|
||||
|
||||
return _channels;
|
||||
}
|
||||
set => _channels = value;
|
||||
}
|
||||
|
||||
@ -103,9 +109,13 @@ namespace Bloxstrap.ViewModels
|
||||
else
|
||||
{
|
||||
Channels = DeployManager.ChannelsAbstracted;
|
||||
|
||||
if (!Channels.Contains(Channel))
|
||||
{
|
||||
Channel = DeployManager.DefaultChannel;
|
||||
OnPropertyChanged(nameof(Channel));
|
||||
}
|
||||
}
|
||||
|
||||
OnPropertyChanged(nameof(Channels));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user