@@ -586,7 +586,8 @@ class SoundEditor extends React.Component {
586
586
} ;
587
587
vNumber . oninput = vNumber . onchange ;
588
588
}
589
- handleFormatMenu ( ) {
589
+
590
+ function handleFormatMenu ( ) {
590
591
const genTitle = ( text ) => {
591
592
const label = document . createElement ( "div" ) ;
592
593
label . style = "font-weight: 500;font-size: 14px;margin-bottom: 5px;" ;
@@ -647,6 +648,9 @@ class SoundEditor extends React.Component {
647
648
warning . style = "font-size:13px;opacity:0.5;" ;
648
649
warningDiv . appendChild ( warning ) ;
649
650
651
+ const warningDiv2 = warning . cloneNode ( true ) ;
652
+ warningDiv2 . textContent = "If 'whole sound' is selected, all added audio will use the new sample rate" ;
653
+
650
654
const applicatorDiv = document . createElement ( "div" ) ;
651
655
applicatorDiv . append (
652
656
genCheckableLabel ( "this selection" , "0" , true ) ,
@@ -660,10 +664,10 @@ class SoundEditor extends React.Component {
660
664
checkable . firstChild . checked = false ;
661
665
}
662
666
div . firstChild . checked = true ;
663
- selectedForceRate = div . id == "0 ";
667
+ selectedForceRate = div . id === "1 ";
664
668
e . stopPropagation ( ) ;
665
669
} ) ;
666
- menu . textarea . append ( rateTitle , warningDiv , genTitle ( "Apply to:" ) , applicatorDiv ) ;
670
+ menu . textarea . append ( rateTitle , warningDiv , genTitle ( "Apply to:" ) , applicatorDiv , warningDiv2 ) ;
667
671
}
668
672
669
673
// TODO: use actual scratch-gui menus instead of this
0 commit comments