Skip to content

Commit

Permalink
Make accounts toggle consistent with other menu items, fixes #104512
Browse files Browse the repository at this point in the history
  • Loading branch information
Rachel Macfarlane committed Aug 12, 2020
1 parent 44dc166 commit 01bf31e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,12 @@ export class ActivitybarPart extends Part implements IActivityBarService {

const toggleAccountsVisibilityAction = new Action(
'toggleAccountsVisibility',
nls.localize('accounts', "Accounts"),
this.accountsVisibilityPreference ? nls.localize('hideAccounts', "Hide Accounts") : nls.localize('showAccounts', "Show Accounts"),
undefined,
true,
async () => { this.accountsVisibilityPreference = !this.accountsVisibilityPreference; }
);

toggleAccountsVisibilityAction.checked = !!this.accountsActivityAction;
actions.push(toggleAccountsVisibilityAction);
actions.push(new Separator());

Expand Down

0 comments on commit 01bf31e

Please sign in to comment.