Skip to content

Commit 01bf31e

Browse files
author
Rachel Macfarlane
committed
Make accounts toggle consistent with other menu items, fixes microsoft#104512
1 parent 44dc166 commit 01bf31e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/vs/workbench/browser/parts/activitybar/activitybarPart.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,13 +168,12 @@ export class ActivitybarPart extends Part implements IActivityBarService {
168168

169169
const toggleAccountsVisibilityAction = new Action(
170170
'toggleAccountsVisibility',
171-
nls.localize('accounts', "Accounts"),
171+
this.accountsVisibilityPreference ? nls.localize('hideAccounts', "Hide Accounts") : nls.localize('showAccounts', "Show Accounts"),
172172
undefined,
173173
true,
174174
async () => { this.accountsVisibilityPreference = !this.accountsVisibilityPreference; }
175175
);
176176

177-
toggleAccountsVisibilityAction.checked = !!this.accountsActivityAction;
178177
actions.push(toggleAccountsVisibilityAction);
179178
actions.push(new Separator());
180179

0 commit comments

Comments
 (0)