PTT toggle fix. (#106)
* fixed PTT checkbox error * fixed mic mute on exit * format
This commit is contained in:
@@ -537,7 +537,8 @@ void OverlayController::processRoomBindings()
|
||||
void OverlayController::processPushToTalkBindings()
|
||||
{
|
||||
const auto pushToTalkCannotChange = !m_audioTabController.pttChangeValid();
|
||||
if ( pushToTalkCannotChange )
|
||||
const auto pushToTalkEnabled = m_audioTabController.pttEnabled();
|
||||
if ( pushToTalkCannotChange || !pushToTalkEnabled )
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -698,6 +699,9 @@ void OverlayController::mainEventLoop()
|
||||
vr::VRSystem()->AcknowledgeQuit_Exiting(); // Let us buy some
|
||||
// time just in case
|
||||
m_moveCenterTabController.reset();
|
||||
// Un-mute mic before Exiting VR, as it is set at system level Not
|
||||
// Vr level.
|
||||
m_audioTabController.setMicMuted( false, false );
|
||||
m_chaperoneTabController.shutdown();
|
||||
Shutdown();
|
||||
QApplication::exit();
|
||||
|
||||
@@ -359,7 +359,7 @@ MyStackViewPage {
|
||||
id: summaryPttToggle
|
||||
text: "Push-to-Talk"
|
||||
onClicked: {
|
||||
AudioTabController.pttEnabled = checked
|
||||
AudioTabController.setPttEnabled(checked, true)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ ColumnLayout {
|
||||
Layout.fillWidth: true
|
||||
text: "Push-to-Talk:"
|
||||
onClicked: {
|
||||
AudioTabController.pttEnabled = checked
|
||||
AudioTabController.setPttEnabled(checked, true)
|
||||
}
|
||||
}
|
||||
MyToggleButton {
|
||||
|
||||
Reference in New Issue
Block a user