mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +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)
|
||||
{
|
||||
if (!enabled) { return; }
|
||||
if (!sGui) { return; }
|
||||
if (!sGui || !sGui->getIContextAudio()) { return; }
|
||||
sGui->getIContextAudio()->playNotification(CNotificationSounds::PTTClick, true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user