Complete code and test sat

This commit is contained in:
Jonathan White 2024-12-27 23:29:49 -05:00
parent c9712ec826
commit 64feaa8dc5
No known key found for this signature in database
GPG Key ID: 440FC65F2E0C6E01
2 changed files with 6 additions and 0 deletions

View File

@ -320,6 +320,9 @@ namespace KeeShareSettings
writer.writeStartElement("Password");
writer.writeCharacters(reference.password.toUtf8().toBase64());
writer.writeEndElement();
writer.writeStartElement("Recurse");
writer.writeCharacters(reference.recurse ? "True" : "False");
writer.writeEndElement();
});
}
@ -346,6 +349,8 @@ namespace KeeShareSettings
reference.path = QString::fromUtf8(QByteArray::fromBase64(reader.readElementText().toLatin1()));
} else if (reader.name() == "Password") {
reference.password = QString::fromUtf8(QByteArray::fromBase64(reader.readElementText().toLatin1()));
} else if (reader.name() == "Recurse") {
reference.recurse = reader.readElementText().compare("True") == 0;
} else {
qWarning("Unknown Reference element %s", qPrintable(reader.name().toString()));
reader.skipCurrentElement();

View File

@ -190,6 +190,7 @@ void EditGroupWidgetKeeShare::update()
m_ui->typeComboBox->setCurrentIndex(reference.type);
m_ui->passwordEdit->setText(reference.password);
m_ui->pathEdit->setText(reference.path);
m_ui->recurseIntoGroupsCheckbox->setChecked(reference.recurse);
}
updateSharingState();