Fix default Brightness value/behavior adds shutdown button (#412)

* added exit button

* fixed visible state

* added shutdown button fixed default brightness issues

* fixed compiler warning
This commit is contained in:
ykeara
2020-04-16 21:53:15 -05:00
committed by GitHub
parent 31f92df4b1
commit b3e9e63cba
5 changed files with 72 additions and 52 deletions
+21 -13
View File
@@ -327,6 +327,24 @@ OverlayController::~OverlayController()
Shutdown();
}
void OverlayController::exitApp()
{
settings::saveAllSettings();
m_moveCenterTabController.shutdown();
// Un-mute mic before Exiting VR, as it is set at system level Not
// Vr level.
// m_audioTabController.setMicMuted( false, false );
m_audioTabController.shutdown();
m_chaperoneTabController.shutdown();
Shutdown();
QApplication::exit();
LOG( INFO ) << "All systems exited.";
exit( EXIT_SUCCESS );
// Does not fallthrough
}
void OverlayController::Shutdown()
{
disconnect( &m_pumpEventsTimer,
@@ -1004,20 +1022,10 @@ void OverlayController::mainEventLoop()
vr::VRSystem()->AcknowledgeQuit_Exiting(); // Let us buy some
// time just in case
settings::saveAllSettings();
m_moveCenterTabController.shutdown();
// Un-mute mic before Exiting VR, as it is set at system level Not
// Vr level.
// m_audioTabController.setMicMuted( false, false );
m_audioTabController.shutdown();
m_chaperoneTabController.shutdown();
Shutdown();
QApplication::exit();
LOG( INFO ) << "All systems exited.";
exitApp();
// Won't fallthrough, but also exitApp() wont, but QT won't
// acknowledge
exit( EXIT_SUCCESS );
// Does not fallthrough
}
case vr::VREvent_DashboardActivated: