Commit c7dfe1a 1 parent ae0f6a8 commit c7dfe1a Copy full SHA for c7dfe1a
File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -3549,6 +3549,7 @@ function createCustomElements(){
3549
3549
}
3550
3550
3551
3551
var customElementsContainer = $ ( '#osdCustomElements' ) ;
3552
+ var init = true ;
3552
3553
3553
3554
for ( var i = 0 ; i < FC . OSD_CUSTOM_ELEMENTS . settings . customElementsCount ; i ++ ) {
3554
3555
var label = $ ( '<label>' ) ;
@@ -3606,7 +3607,9 @@ function createCustomElements(){
3606
3607
var valueBlock = $ ( '.' + $ ( this ) . data ( 'valueCellClass' ) )
3607
3608
valueBlock . find ( '.value' ) . hide ( ) ;
3608
3609
valueBlock . find ( '.' + dataValue ) . show ( ) ;
3609
- updateOSDCustomElementsDisplay ( ) ;
3610
+ if ( ! init ) {
3611
+ updateOSDCustomElementsDisplay ( ) ;
3612
+ }
3610
3613
} ) ;
3611
3614
}
3612
3615
@@ -3636,6 +3639,7 @@ function createCustomElements(){
3636
3639
3637
3640
fillCustomElementsValues ( ) ;
3638
3641
customElementsInitCallback ( ) ;
3642
+ init = false ;
3639
3643
}
3640
3644
3641
3645
function updateOSDCustomElementsDisplay ( ) {
You can’t perform that action at this time.
0 commit comments