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 ;
2
2
using Flow . Launcher . Plugin . Explorer . Search ;
3
3
using Flow . Launcher . Plugin . Explorer . Search . Everything ;
4
4
using Flow . Launcher . Plugin . Explorer . ViewModels ;
11
11
using System . Windows . Controls ;
12
12
using Flow . Launcher . Plugin . Explorer . Exceptions ;
13
13
using System . Linq ;
14
+ using System . Globalization ;
14
15
15
16
namespace Flow . Launcher . Plugin . Explorer
16
17
{
@@ -97,6 +98,12 @@ public string GetTranslatedPluginDescription()
97
98
return Context . API . GetTranslation ( "plugin_explorer_plugin_description" ) ;
98
99
}
99
100
101
+ public void OnCultureInfoChanged ( CultureInfo newCulture )
102
+ {
103
+ // Update labels for setting view model
104
+ EverythingSortOptionLocalized . UpdateLabels ( viewModel . AllEverythingSortOptions ) ;
105
+ }
106
+
100
107
private static void FillQuickAccessLinkNames ( )
101
108
{
102
109
// 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 4
4
using System . Linq ;
5
5
using System . Windows ;
6
6
using System . Windows . Controls ;
7
- using Flow . Launcher . Plugin . Explorer . Search . Everything ;
8
7
using Flow . Launcher . Plugin . Explorer . Search . QuickAccessLinks ;
9
8
using Flow . Launcher . Plugin . Explorer . ViewModels ;
10
9
using DataFormats = System . Windows . DataFormats ;
@@ -39,9 +38,6 @@ public ExplorerSettings(SettingsViewModel viewModel)
39
38
QuickAccessExpander ,
40
39
ExcludedPathsExpander
41
40
} ;
42
-
43
- // Update labels on initialization to update on language change
44
- EverythingSortOptionLocalized . UpdateLabels ( _viewModel . AllEverythingSortOptions ) ;
45
41
}
46
42
47
43
private void AccessLinkDragDrop ( string containerName , DragEventArgs e )
You can’t perform that action at this time.
0 commit comments