mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-03 16:25:54 +08:00
Ref T567, PTT click also on key up
* added sound * UI component
This commit is contained in:
committed by
Mat Sutcliffe
parent
754f70a4ed
commit
8c83020b92
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user