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

refactor(startup): display last used profile when logging out

This commit is contained in:
jenli669 2019-06-24 01:18:16 +02:00
parent b9876f3342
commit a7df4bfddb
No known key found for this signature in database
GPG Key ID: 8267F9F7C2BF7E5E

View File

@ -226,8 +226,10 @@ QStringList ProfileInfo::removeProfile()
*/
void ProfileInfo::logout()
{
// TODO(kriby): Refactor all of these invokeMethod calls with connect() properly when possible
Settings::getInstance().saveGlobal();
QMetaObject::invokeMethod(&Nexus::getInstance(), "showLogin");
QMetaObject::invokeMethod(&Nexus::getInstance(), "showLogin",
Q_ARG(QString, Settings::getInstance().getCurrentProfile()));
}
/**