Ref T567, PTT click also on key up

* added sound
* UI component
This commit is contained in:
Klaus Basan
2019-03-17 00:58:56 +01:00
committed by Mat Sutcliffe
parent 754f70a4ed
commit 8c83020b92
8 changed files with 39 additions and 16 deletions

View File

@@ -489,9 +489,10 @@ void SwiftGuiStd::displayLog()
void SwiftGuiStd::onPttChanged(bool enabled)
{
if (!enabled) { return; }
if (!sGui || !sGui->getIContextAudio()) { return; }
sGui->getIContextAudio()->playNotification(CNotificationSounds::PTTClick, true);
sGui->getIContextAudio()->playNotification(
enabled ? CNotificationSounds::PTTClickKeyDown : CNotificationSounds::PTTClickKeyUp,
true);
}
void SwiftGuiStd::displayDBusReconnectDialog()