mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-07 09:42:23 +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();
|
||||
QFile configFile{ path };
|
||||
if (configFile.open(QIODevice::ReadWrite)) {
|
||||
if (configFile.open(QIODevice::ReadWrite | QIODevice::Truncate)) {
|
||||
QJsonDocument doc = QJsonDocument::fromJson(configFile.readAll());
|
||||
doc.setObject({
|
||||
{ configHomeLocationKey, _config.homeLocation },
|
||||
|
|
Loading…
Reference in a new issue