Commit 5edddccf authored by yann300's avatar yann300

add icon to tab

parent fc8e43e2
...@@ -59,7 +59,8 @@ export class TabProxy { ...@@ -59,7 +59,8 @@ export class TabProxy {
() => { () => {
this.event.emit('closeApp', name) this.event.emit('closeApp', name)
this.appManager.deactivateOne(name) this.appManager.deactivateOne(name)
} },
profile.icon
) )
this.switchTab(name) this.switchTab(name)
} }
...@@ -105,7 +106,7 @@ export class TabProxy { ...@@ -105,7 +106,7 @@ export class TabProxy {
this._view.filetabs.activateTab(name) this._view.filetabs.activateTab(name)
} }
addTab (name, title, switchTo, close, kind) { addTab (name, title, switchTo, close, icon) {
if (this._handlers[name]) return if (this._handlers[name]) return
var slash = name.split('/') var slash = name.split('/')
...@@ -115,7 +116,7 @@ export class TabProxy { ...@@ -115,7 +116,7 @@ export class TabProxy {
this._view.filetabs.addTab({ this._view.filetabs.addTab({
id: name, id: name,
title, title,
icon: '', icon,
tooltip: name tooltip: name
}) })
this._handlers[name] = { switchTo, close } this._handlers[name] = { switchTo, close }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment