forked from qt-creator/qt-creator
Add comments for last session vs startup session
Change-Id: If8b551221c24c74c3415f93400c254528ac57729 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -1135,11 +1135,17 @@ bool SessionManager::loadSession(const QString &session, bool initial)
|
||||
return true;
|
||||
}
|
||||
|
||||
/*!
|
||||
Returns the last session that was opened by the user.
|
||||
*/
|
||||
QString SessionManager::lastSession()
|
||||
{
|
||||
return ICore::settings()->value(Constants::LASTSESSION_KEY).toString();
|
||||
}
|
||||
|
||||
/*!
|
||||
Returns the session that was active when Qt Creator was last closed, if any.
|
||||
*/
|
||||
QString SessionManager::startupSession()
|
||||
{
|
||||
return ICore::settings()->value(Constants::STARTUPSESSION_KEY).toString();
|
||||
|
Reference in New Issue
Block a user