File tree Expand file tree Collapse file tree
Plugins/SimpleFileBrowser/Scripts Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -278,7 +278,10 @@ public static string AllFilesFilterText
278278 m_instance . filters [ 0 ] = m_instance . allFilesFilter ;
279279
280280 if ( m_instance . filtersDropdown . options [ 0 ] . text == oldValue )
281+ {
281282 m_instance . filtersDropdown . options [ 0 ] . text = value ;
283+ m_instance . filtersDropdown . RefreshShownValue ( ) ;
284+ }
282285 }
283286 }
284287 }
@@ -296,7 +299,10 @@ public static string FoldersFilterText
296299 m_foldersFilterText = value ;
297300
298301 if ( m_instance && m_instance . filtersDropdown . options [ 0 ] . text == oldValue )
302+ {
299303 m_instance . filtersDropdown . options [ 0 ] . text = value ;
304+ m_instance . filtersDropdown . RefreshShownValue ( ) ;
305+ }
300306 }
301307 }
302308 }
@@ -702,7 +708,6 @@ private set
702708 {
703709 filtersDropdown . options [ 0 ] . text = FoldersFilterText ;
704710 filtersDropdown . value = 0 ;
705- filtersDropdown . RefreshShownValue ( ) ;
706711 filtersDropdown . interactable = false ;
707712 }
708713 else
@@ -711,6 +716,8 @@ private set
711716 filtersDropdown . interactable = true ;
712717 }
713718
719+ filtersDropdown . RefreshShownValue ( ) ;
720+
714721 Text placeholder = filenameInputField . placeholder as Text ;
715722 if ( placeholder )
716723 placeholder . gameObject . SetActive ( m_pickerMode != PickMode . Folders ) ;
You can’t perform that action at this time.
0 commit comments