panel/tab: don't send same osc over and over; root: set default address to "/root"
This commit is contained in:
parent
1448ddc886
commit
0299df4e31
2 changed files with 2 additions and 2 deletions
|
|
@ -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)=>{
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ module.exports = class Root extends Panel {
|
|||
|
||||
value:'',
|
||||
precision:0,
|
||||
address:'auto',
|
||||
address:'/root',
|
||||
preArgs:[],
|
||||
target:[],
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue