Skip to content

Commit

Permalink
Log switching workspaces in mobile app (#3420)
Browse files Browse the repository at this point in the history
* log workspace name and id when changing

* message enhancement
  • Loading branch information
VitorVieiraZ authored May 13, 2024
1 parent bbae798 commit 5a62154
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/merginuserinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,13 @@ void MerginUserInfo::setActiveWorkspace( int newWorkspace )
settings.beginGroup( "Input/" );
settings.setValue( "lastUsedWorkspace", mActiveWorkspace );
settings.endGroup();

QString logMessage = QStringLiteral( "Switched to workspace '%1' with ID %2" )
.arg( activeWorkspaceName() )
.arg( newWorkspace );

CoreUtils::log( QStringLiteral( "Workspace Switch" ), logMessage );

emit activeWorkspaceChanged();
}

Expand Down

0 comments on commit 5a62154

Please sign in to comment.