Skip to content

Commit c819d13

Browse files
committedJul 30, 2017
Hide profiles section if there is only one user profile
1 parent 45fc00a commit c819d13

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2343,6 +2343,11 @@ void QgisApp::refreshProfileMenu()
23432343
userProfileManager()->loadUserProfile( name );
23442344
} );
23452345
}
2346+
2347+
if ( userProfileManager()->allProfiles().count() == 1 )
2348+
{
2349+
profileSection->setVisible( false );
2350+
}
23462351
}
23472352

23482353
void QgisApp::createProfileMenu()

0 commit comments

Comments
 (0)
Please sign in to comment.