1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(profile): write .tox file immediately on creation

Fixes issue where .tox file of a new profile wasn't written until
connection was established.
This commit is contained in:
jenli669 2019-06-28 16:15:06 +02:00
parent c87682cde9
commit 49c8f9b9b5
No known key found for this signature in database
GPG Key ID: 8267F9F7C2BF7E5E

View File

@ -264,6 +264,7 @@ void Profile::initCore(const QByteArray& toxsave, const ICoreSettings& s, bool i
if (isNewProfile) {
core->setStatusMessage(tr("Toxing on qTox"));
core->setUsername(name);
onSaveToxSave();
}
// save tox file when Core requests it