Commit 702f23c0 authored by luyikei's avatar luyikei

Project: Actually change the backend fps if the setting value "fps" is changed

parent ccf1c6fc
......@@ -220,7 +220,12 @@ Project::initSettings()
QT_TRANSLATE_NOOP( "PreferenceWidget", "The project name" ),
SettingValue::NotEmpty );
connect( pName, &SettingValue::changed, this, [this]( const QVariant& var ){ emit projectNameChanged( var.toString() ); } );
connect( fps, &SettingValue::changed, this, [this]( const QVariant& var ){ emit fpsChanged( var.toDouble() ); } );
connect( fps, &SettingValue::changed, this, [this]( const QVariant& var )
{
const auto fpsV = var.toDouble();
emit fpsChanged( fpsV );
Backend::instance()->profile().setFrameRate( static_cast<int>( fpsV * 1000 ), 1000 );
} );
}
void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment