Ssbugs, removal of re-vive, and dashboard loop tick (#277)
* minor changes * debugging testing * removed un-needed log calls * moved some logic to run only when dashboard is active * fixed linker error * added casting * removed revive tab * removed stray revive reference * removed revive from sources * fixed misc formatting issues * added newline
This commit is contained in:
@@ -9,14 +9,6 @@ void SettingsTabController::initStage1()
|
||||
{
|
||||
m_autoStartEnabled = vr::VRApplications()->GetApplicationAutoLaunch(
|
||||
application_strings::applicationKey );
|
||||
auto settings = OverlayController::appSettings();
|
||||
settings->beginGroup( "applicationSettings" );
|
||||
auto value = settings->value( "forceRevivePage", m_forceRevivePage );
|
||||
settings->endGroup();
|
||||
if ( value.isValid() && !value.isNull() )
|
||||
{
|
||||
m_forceRevivePage = value.toBool();
|
||||
}
|
||||
}
|
||||
|
||||
void SettingsTabController::initStage2( OverlayController* var_parent )
|
||||
@@ -24,15 +16,12 @@ void SettingsTabController::initStage2( OverlayController* var_parent )
|
||||
this->parent = var_parent;
|
||||
}
|
||||
|
||||
void SettingsTabController::eventLoopTick()
|
||||
void SettingsTabController::dashboardLoopTick()
|
||||
{
|
||||
if ( settingsUpdateCounter >= k_settingsTabSettingsUpdateCounter )
|
||||
{
|
||||
if ( parent->isDashboardVisible() )
|
||||
{
|
||||
setAutoStartEnabled( vr::VRApplications()->GetApplicationAutoLaunch(
|
||||
application_strings::applicationKey ) );
|
||||
}
|
||||
setAutoStartEnabled( vr::VRApplications()->GetApplicationAutoLaunch(
|
||||
application_strings::applicationKey ) );
|
||||
settingsUpdateCounter = 0;
|
||||
}
|
||||
else
|
||||
@@ -66,26 +55,4 @@ void SettingsTabController::setAutoStartEnabled( bool value, bool notify )
|
||||
}
|
||||
}
|
||||
|
||||
bool SettingsTabController::forceRevivePage() const
|
||||
{
|
||||
return m_forceRevivePage;
|
||||
}
|
||||
|
||||
void SettingsTabController::setForceRevivePage( bool value, bool notify )
|
||||
{
|
||||
if ( m_forceRevivePage != value )
|
||||
{
|
||||
m_forceRevivePage = value;
|
||||
auto settings = OverlayController::appSettings();
|
||||
settings->beginGroup( "applicationSettings" );
|
||||
settings->setValue( "forceRevivePage", m_forceRevivePage );
|
||||
settings->endGroup();
|
||||
settings->sync();
|
||||
if ( notify )
|
||||
{
|
||||
emit forceRevivePageChanged( m_forceRevivePage );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace advsettings
|
||||
|
||||
Reference in New Issue
Block a user