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:
parent
b9876f3342
commit
a7df4bfddb
|
@ -226,8 +226,10 @@ QStringList ProfileInfo::removeProfile()
|
||||||
*/
|
*/
|
||||||
void ProfileInfo::logout()
|
void ProfileInfo::logout()
|
||||||
{
|
{
|
||||||
|
// TODO(kriby): Refactor all of these invokeMethod calls with connect() properly when possible
|
||||||
Settings::getInstance().saveGlobal();
|
Settings::getInstance().saveGlobal();
|
||||||
QMetaObject::invokeMethod(&Nexus::getInstance(), "showLogin");
|
QMetaObject::invokeMethod(&Nexus::getInstance(), "showLogin",
|
||||||
|
Q_ARG(QString, Settings::getInstance().getCurrentProfile()));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user