Browse Source

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

reviewable/pr5711/r5
jenli669 6 years ago
parent
commit
a7df4bfddb
No known key found for this signature in database
GPG Key ID: 8267F9F7C2BF7E5E
  1. 4
      src/model/profile/profileinfo.cpp

4
src/model/profile/profileinfo.cpp

@ -226,8 +226,10 @@ QStringList ProfileInfo::removeProfile() @@ -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()));
}
/**

Loading…
Cancel
Save