Convert m_showLogMatricesButton to new settings API
This commit is contained in:
@@ -56,8 +56,6 @@ void MoveCenterTabController::initStage1()
|
|||||||
m_flingStrength = static_cast<float>( settings::getSetting(
|
m_flingStrength = static_cast<float>( settings::getSetting(
|
||||||
settings::DoubleSetting::PLAYSPACE_flingStrength ) );
|
settings::DoubleSetting::PLAYSPACE_flingStrength ) );
|
||||||
|
|
||||||
m_showLogMatricesButton = settings::getSetting(
|
|
||||||
settings::BoolSetting::PLAYSPACE_showLogMatricesButton );
|
|
||||||
m_allowExternalEdits = settings::getSetting(
|
m_allowExternalEdits = settings::getSetting(
|
||||||
settings::BoolSetting::PLAYSPACE_allowExternalEdits );
|
settings::BoolSetting::PLAYSPACE_allowExternalEdits );
|
||||||
m_oldStyleMotion = settings::getSetting(
|
m_oldStyleMotion = settings::getSetting(
|
||||||
@@ -875,21 +873,18 @@ void MoveCenterTabController::setLockZ( bool value, bool notify )
|
|||||||
|
|
||||||
bool MoveCenterTabController::showLogMatricesButton() const
|
bool MoveCenterTabController::showLogMatricesButton() const
|
||||||
{
|
{
|
||||||
return m_showLogMatricesButton;
|
return settings::getSetting(
|
||||||
|
settings::BoolSetting::PLAYSPACE_showLogMatricesButton );
|
||||||
}
|
}
|
||||||
|
|
||||||
void MoveCenterTabController::setShowLogMatricesButton( bool value,
|
void MoveCenterTabController::setShowLogMatricesButton( bool value,
|
||||||
bool notify )
|
bool notify )
|
||||||
{
|
{
|
||||||
m_showLogMatricesButton = value;
|
settings::setSetting(
|
||||||
auto settings = OverlayController::appSettings();
|
settings::BoolSetting::PLAYSPACE_showLogMatricesButton, value );
|
||||||
settings->beginGroup( "playspaceSettings" );
|
|
||||||
settings->setValue( "showLogMatricesButton", m_showLogMatricesButton );
|
|
||||||
settings->endGroup();
|
|
||||||
settings->sync();
|
|
||||||
if ( notify )
|
if ( notify )
|
||||||
{
|
{
|
||||||
emit showLogMatricesButtonChanged( m_showLogMatricesButton );
|
emit showLogMatricesButtonChanged( value );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -170,7 +170,6 @@ private:
|
|||||||
bool m_dashWasOpenPreviousFrame = false;
|
bool m_dashWasOpenPreviousFrame = false;
|
||||||
bool m_roomSetupModeDetected = false;
|
bool m_roomSetupModeDetected = false;
|
||||||
bool m_seatedModeDetected = false;
|
bool m_seatedModeDetected = false;
|
||||||
bool m_showLogMatricesButton = false;
|
|
||||||
bool m_allowExternalEdits = false;
|
bool m_allowExternalEdits = false;
|
||||||
bool m_oldStyleMotion = false;
|
bool m_oldStyleMotion = false;
|
||||||
bool m_universeCenteredRotation = false;
|
bool m_universeCenteredRotation = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user