Skip to content

Commit

Permalink
revert c3d4807, move the 'core.toggle.bottom.panel' to the last item
Browse files Browse the repository at this point in the history
Signed-off-by: Uni Sayo <[email protected]>
  • Loading branch information
uniibu committed Mar 26, 2019
1 parent c3d4807 commit 9f33a31
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions packages/core/src/browser/status-bar/status-bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ export class StatusBarImpl extends ReactWidget implements StatusBar {
const rp = right.priority || 0;
return rp - lp;
});
elements.push(elements.splice(elements.findIndex(el => el.command === 'core.toggle.bottom.panel'), 1)[0]);
elements.forEach(entry => {
if (entry.alignment === StatusBarAlignment.LEFT) {
leftEntries.push(this.renderElement(entry));
Expand Down
3 changes: 0 additions & 3 deletions packages/plugin-ext/src/plugin/status-bar/status-bar-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ export class StatusBarItemImpl implements theia.StatusBarItem {
priority: number = 0) {
this._proxy = _proxy;
this._alignment = alignment;
if (alignment === StatusBarAlignment.Right && priority <= 0) {
priority = 0.1;
}
this._priority = priority;
}

Expand Down

0 comments on commit 9f33a31

Please sign in to comment.