mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-29 12:45:40 +08:00
Ref T565, check for audio context
This commit is contained in:
committed by
Mat Sutcliffe
parent
244c7e638a
commit
d8d4fdf766
@@ -490,7 +490,7 @@ void SwiftGuiStd::displayLog()
|
|||||||
void SwiftGuiStd::onPttChanged(bool enabled)
|
void SwiftGuiStd::onPttChanged(bool enabled)
|
||||||
{
|
{
|
||||||
if (!enabled) { return; }
|
if (!enabled) { return; }
|
||||||
if (!sGui) { return; }
|
if (!sGui || !sGui->getIContextAudio()) { return; }
|
||||||
sGui->getIContextAudio()->playNotification(CNotificationSounds::PTTClick, true);
|
sGui->getIContextAudio()->playNotification(CNotificationSounds::PTTClick, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user