Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sandy081 authored Jan 22, 2024
1 parent 143e023 commit 0d71d26
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/vs/workbench/browser/parts/globalCompositeBar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -584,17 +584,18 @@ export class GlobalActivityActionViewItem extends AbstractGlobalActivityActionVi
return;
}

if ((this.action as CompositeBarAction).activity) {
if (this.userDataProfileService.currentProfile.icon && this.userDataProfileService.currentProfile.icon !== DEFAULT_ICON.id) {
return;
}

if (!this.userDataProfileService.currentProfile.icon || this.userDataProfileService.currentProfile.icon === DEFAULT_ICON.id) {
this.profileBadgeContent.classList.toggle('profile-text-overlay', true);
this.profileBadgeContent.classList.toggle('profile-icon-overlay', false);
this.profileBadgeContent.textContent = this.userDataProfileService.currentProfile.name.substring(0, 2).toUpperCase();
if ((this.action as CompositeBarAction).activity) {
return;
}

show(this.profileBadge);
this.profileBadgeContent.classList.toggle('profile-text-overlay', true);
this.profileBadgeContent.classList.toggle('profile-icon-overlay', false);
this.profileBadgeContent.textContent = this.userDataProfileService.currentProfile.name.substring(0, 2).toUpperCase();
}

protected override updateActivity(): void {
Expand Down

0 comments on commit 0d71d26

Please sign in to comment.