File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
Plugins/Flow.Launcher.Plugin.Explorer Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1- using Flow . Launcher . Plugin . Explorer . Helper ;
1+ using Flow . Launcher . Plugin . Explorer . Helper ;
22using Flow . Launcher . Plugin . Explorer . Search ;
33using Flow . Launcher . Plugin . Explorer . Search . Everything ;
44using Flow . Launcher . Plugin . Explorer . ViewModels ;
1111using System . Windows . Controls ;
1212using Flow . Launcher . Plugin . Explorer . Exceptions ;
1313using System . Linq ;
14+ using System . Globalization ;
1415
1516namespace Flow . Launcher . Plugin . Explorer
1617{
@@ -97,6 +98,12 @@ public string GetTranslatedPluginDescription()
9798 return Context . API . GetTranslation ( "plugin_explorer_plugin_description" ) ;
9899 }
99100
101+ public void OnCultureInfoChanged ( CultureInfo newCulture )
102+ {
103+ // Update labels for setting view model
104+ EverythingSortOptionLocalized . UpdateLabels ( viewModel . AllEverythingSortOptions ) ;
105+ }
106+
100107 private static void FillQuickAccessLinkNames ( )
101108 {
102109 // Legacy version does not have names for quick access links, so we fill them with the path name.
Original file line number Diff line number Diff line change 44using System . Linq ;
55using System . Windows ;
66using System . Windows . Controls ;
7- using Flow . Launcher . Plugin . Explorer . Search . Everything ;
87using Flow . Launcher . Plugin . Explorer . Search . QuickAccessLinks ;
98using Flow . Launcher . Plugin . Explorer . ViewModels ;
109using DataFormats = System . Windows . DataFormats ;
@@ -39,9 +38,6 @@ public ExplorerSettings(SettingsViewModel viewModel)
3938 QuickAccessExpander ,
4039 ExcludedPathsExpander
4140 } ;
42-
43- // Update labels on initialization to update on language change
44- EverythingSortOptionLocalized . UpdateLabels ( _viewModel . AllEverythingSortOptions ) ;
4541 }
4642
4743 private void AccessLinkDragDrop ( string containerName , DragEventArgs e )
You can’t perform that action at this time.
0 commit comments