Only allow PTT and page on selected channels

pull/1/head
firealarmss 1 year ago
parent 413f3d7889
commit def0968ce6

@ -166,12 +166,16 @@ namespace WhackerLinkConsoleV2.Controls
private void PTTButton_Click(object sender, RoutedEventArgs e)
{
if (!IsSelected) return;
PttState = !PttState;
PTTButtonClicked.Invoke(sender, this);
}
private void PageSelectButton_Click(object sender, RoutedEventArgs e)
{
if (!IsSelected) return;
PageState = !PageState;
PageButtonClicked.Invoke(sender, this);
}

@ -774,6 +774,9 @@ namespace WhackerLinkConsoleV2
Codeplug.Channel cpgChannel = Codeplug.GetChannelByName(e.ChannelName);
IWebSocketHandler handler = _webSocketManager.GetWebSocketHandler(system.Name);
if (!e.IsSelected)
return;
if (e.PttState)
{
GRP_VCH_REQ request = new GRP_VCH_REQ

Loading…
Cancel
Save

Powered by TurnKey Linux.