mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 11:28:03 +02:00
do not add double entries to config.json
This commit is contained in:
parent
4179ef3391
commit
86f1286fac
1 changed files with 1 additions and 1 deletions
|
@ -718,7 +718,7 @@ void LauncherState::launchClient() {
|
||||||
|
|
||||||
auto path = getConfigFilePath();
|
auto path = getConfigFilePath();
|
||||||
QFile configFile{ path };
|
QFile configFile{ path };
|
||||||
if (configFile.open(QIODevice::ReadWrite)) {
|
if (configFile.open(QIODevice::ReadWrite | QIODevice::Truncate)) {
|
||||||
QJsonDocument doc = QJsonDocument::fromJson(configFile.readAll());
|
QJsonDocument doc = QJsonDocument::fromJson(configFile.readAll());
|
||||||
doc.setObject({
|
doc.setObject({
|
||||||
{ configHomeLocationKey, _config.homeLocation },
|
{ configHomeLocationKey, _config.homeLocation },
|
||||||
|
|
Loading…
Reference in a new issue