File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed
Flow.Launcher.Infrastructure/UserSettings Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,21 @@ public void Save()
42
42
public string Hotkey { get ; set ; } = $ "{ KeyConstant . Alt } + { KeyConstant . Space } ";
43
43
public string OpenResultModifiers { get ; set ; } = KeyConstant . Alt ;
44
44
public string ColorScheme { get ; set ; } = "System" ;
45
- public bool ShowOpenResultHotkey { get ; set ; } = true ;
45
+
46
+ private bool _showOpenResultHotkey = true ;
47
+ public bool ShowOpenResultHotkey
48
+ {
49
+ get => _showOpenResultHotkey ;
50
+ set
51
+ {
52
+ if ( _showOpenResultHotkey != value )
53
+ {
54
+ _showOpenResultHotkey = value ;
55
+ OnPropertyChanged ( ) ;
56
+ }
57
+ }
58
+ }
59
+
46
60
public double WindowSize { get ; set ; } = 580 ;
47
61
public string PreviewHotkey { get ; set ; } = $ "F1";
48
62
public string AutoCompleteHotkey { get ; set ; } = $ "{ KeyConstant . Ctrl } + Tab";
Original file line number Diff line number Diff line change 36
36
<converter : BadgePositionConverter x : Key =" BadgePositionConverter" />
37
37
<converter : IconRadiusConverter x : Key =" IconRadiusConverter" />
38
38
<converter : DiameterToCenterPointConverter x : Key =" DiameterToCenterPointConverter" />
39
+ <converter : BoolToVisibilityConverter x : Key =" BoolToVisibilityConverter" />
39
40
</ListBox .Resources>
40
41
<ListBox .ItemTemplate>
41
42
<DataTemplate >
66
67
Grid.Column=" 2"
67
68
Margin =" 0 0 10 0"
68
69
VerticalAlignment =" Center"
69
- Visibility =" {Binding ShowOpenResultHotkey}" >
70
+ Visibility =" {Binding Settings. ShowOpenResultHotkey, Mode=OneWay, Converter={StaticResource BoolToVisibilityConverter} }" >
70
71
<Border x : Name =" HotkeyBG" Style =" {DynamicResource ItemHotkeyBGStyle}" >
71
72
<Border .Visibility>
72
73
<Binding Converter =" {StaticResource ResourceKey=OpenResultHotkeyVisibilityConverter}" RelativeSource =" {RelativeSource Mode=FindAncestor, AncestorType=ListBoxItem}" />
You can’t perform that action at this time.
0 commit comments