mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Release 2.0.0-alpha.10
This commit is contained in:
parent
3476409ed4
commit
4f3c853263
@ -178,6 +178,9 @@ void GrabberWrapper::handleSettingsUpdate(settings::type type, const QJsonDocume
|
||||
{
|
||||
// extract settings
|
||||
const QJsonObject& obj = config.object();
|
||||
|
||||
// save current state
|
||||
bool isEnabled = getSysGrabberState();
|
||||
|
||||
// set global grabber state
|
||||
setSysGrabberState(obj["enable"].toBool(false));
|
||||
@ -203,6 +206,12 @@ void GrabberWrapper::handleSettingsUpdate(settings::type type, const QJsonDocume
|
||||
_ggrabber->setFramerate(obj["fps"].toInt(DEFAULT_RATE_HZ));
|
||||
// eval new update time
|
||||
updateTimer(_ggrabber->getUpdateInterval());
|
||||
|
||||
// start if current state is not true
|
||||
if (!isEnabled)
|
||||
{
|
||||
start();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -446,7 +446,7 @@ bool SettingsManager::handleConfigUpgrade(QJsonObject& config)
|
||||
//Rename element type -> device
|
||||
if (newFramegrabberConfig.contains("type"))
|
||||
{
|
||||
newFramegrabberConfig["device"] = "auto"; //newFramegrabberConfig["type"].toString();
|
||||
newFramegrabberConfig["device"] = newFramegrabberConfig["type"].toString();
|
||||
newFramegrabberConfig.remove("type");
|
||||
migrated = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user