Skip to content

Commit

Permalink
Prevent closing preference editor with the middle mouse click
Browse files Browse the repository at this point in the history
Fixes #2639

- prevent closing preference editors using the middle mouse click by
setting the `title.closable` to `false`.

Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
  • Loading branch information
vince-fugnitto authored and elaihau committed Sep 18, 2019
1 parent 286944f commit d306a29
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export class PreferenceEditorTabHeaderRenderer extends TabBar.Renderer {

renderTab(data: TabBar.IRenderData<PreferencesEditorWidget>): VirtualElement {
const title = data.title;
title.closable = false;
const key = this.createTabKey(data);
const style = this.createTabStyle(data);
const className = this.createTabClass(data);
Expand Down

0 comments on commit d306a29

Please sign in to comment.