mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
always output latest version of config file to webui (#307)
* always output latest version of config file to webui * fix permissions after default config export * tune code * set permissions for exported effects * use qt setperm instead of chmod update effects code style a bit * add fallback when config is not readable
This commit is contained in:
@@ -1042,8 +1042,15 @@ void JsonClientConnection::handleConfigGetCommand(const QJsonObject& message, co
|
||||
result["success"] = true;
|
||||
result["command"] = command;
|
||||
result["tan"] = tan;
|
||||
const QJsonObject & config = _hyperion->getQJsonConfig();
|
||||
result["result"] = config;
|
||||
|
||||
try
|
||||
{
|
||||
result["result"] = QJsonFactory::readJson(QString::fromStdString(_hyperion->getConfigFileName()));
|
||||
}
|
||||
catch(...)
|
||||
{
|
||||
result["result"] = _hyperion->getQJsonConfig();
|
||||
}
|
||||
|
||||
// send the result
|
||||
sendMessage(result);
|
||||
|
Reference in New Issue
Block a user