panel/tab: don't send same osc over and over; root: set default address to "/root"

This commit is contained in:
jean-emmanuel 2017-06-09 15:22:22 +02:00
parent 1448ddc886
commit 0299df4e31
2 changed files with 2 additions and 2 deletions

View file

@ -74,7 +74,7 @@ module.exports = class Panel extends _widgets_base {
this.navigation.on('fake-click', (e)=>{
if (!e.target.hasAttribute('data-widget')) return
this.setValue($(e.target).index(), {sync: true, send:true})
this.setValue($(e.target).index(), {sync: true, send:this.value != $(e.target).index()})
})
this.wrapper.on('tab-created', (e)=>{

View file

@ -16,7 +16,7 @@ module.exports = class Root extends Panel {
value:'',
precision:0,
address:'auto',
address:'/root',
preArgs:[],
target:[],