mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix(profile): load settings before starting Core
This is a quick fix to load settings before Core is started. Ideally this would not need to be inside the Profile, but at the moment the decryption key is not available before starting Core.
This commit is contained in:
parent
2ce00afcbb
commit
0a30c1b1c0
|
@ -105,6 +105,9 @@ Profile::Profile(QString name, const QString& password, bool isNewProfile,
|
||||||
, encrypted{this->passkey != nullptr}
|
, encrypted{this->passkey != nullptr}
|
||||||
{
|
{
|
||||||
Settings& s = Settings::getInstance();
|
Settings& s = Settings::getInstance();
|
||||||
|
// Core settings are saved per profile, need to load them before starting Core
|
||||||
|
s.loadPersonal(name, this->passkey.get());
|
||||||
|
|
||||||
// TODO(kriby): Move/refactor core initialization to remove settings dependency
|
// TODO(kriby): Move/refactor core initialization to remove settings dependency
|
||||||
// note to self: use slots/signals for this?
|
// note to self: use slots/signals for this?
|
||||||
initCore(toxsave, s, isNewProfile);
|
initCore(toxsave, s, isNewProfile);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user