@@ -68,11 +68,12 @@ public string Theme
68
68
get => _theme ;
69
69
set
70
70
{
71
- if ( value == _theme )
72
- return ;
73
- _theme = value ;
74
- OnPropertyChanged ( ) ;
75
- OnPropertyChanged ( nameof ( MaxResultsToShow ) ) ;
71
+ if ( value != _theme )
72
+ {
73
+ _theme = value ;
74
+ OnPropertyChanged ( ) ;
75
+ OnPropertyChanged ( nameof ( MaxResultsToShow ) ) ;
76
+ }
76
77
}
77
78
}
78
79
public bool UseDropShadowEffect { get ; set ; } = true ;
@@ -113,25 +114,17 @@ public string Theme
113
114
public double ? SettingWindowLeft { get ; set ; } = null ;
114
115
public System . Windows . WindowState SettingWindowState { get ; set ; } = WindowState . Normal ;
115
116
116
- bool _resizeWindow { get ; set ; } = true ;
117
- public bool ResizeWindow
118
- {
119
- get => _resizeWindow ;
120
- set
121
- {
122
- _resizeWindow = value ;
123
- OnPropertyChanged ( ) ;
124
- }
125
- }
126
-
127
117
bool _showPlaceholder { get ; set ; } = false ;
128
118
public bool ShowPlaceholder
129
119
{
130
120
get => _showPlaceholder ;
131
121
set
132
122
{
133
- _showPlaceholder = value ;
134
- OnPropertyChanged ( ) ;
123
+ if ( _showPlaceholder != value )
124
+ {
125
+ _showPlaceholder = value ;
126
+ OnPropertyChanged ( ) ;
127
+ }
135
128
}
136
129
}
137
130
string _placeholderText { get ; set ; } = string . Empty ;
@@ -140,8 +133,11 @@ public string PlaceholderText
140
133
get => _placeholderText ;
141
134
set
142
135
{
143
- _placeholderText = value ;
144
- OnPropertyChanged ( ) ;
136
+ if ( _placeholderText != value )
137
+ {
138
+ _placeholderText = value ;
139
+ OnPropertyChanged ( ) ;
140
+ }
145
141
}
146
142
}
147
143
@@ -273,10 +269,26 @@ public SearchPrecisionScore QuerySearchPrecision
273
269
/// </summary>
274
270
public double CustomWindowTop { get ; set ; } = 0 ;
275
271
276
- public bool KeepMaxResults { get ; set ; } = false ;
272
+ /// <summary>
273
+ /// Fixed window size
274
+ /// </summary>
275
+ private bool _keepMaxResults { get ; set ; } = false ;
276
+ public bool KeepMaxResults
277
+ {
278
+ get => _keepMaxResults ;
279
+ set
280
+ {
281
+ if ( _keepMaxResults != value )
282
+ {
283
+ _keepMaxResults = value ;
284
+ OnPropertyChanged ( ) ;
285
+ }
286
+ }
287
+ }
288
+
277
289
public int MaxResultsToShow { get ; set ; } = 5 ;
278
- public int ActivateTimes { get ; set ; }
279
290
291
+ public int ActivateTimes { get ; set ; }
280
292
281
293
public ObservableCollection < CustomPluginHotkey > CustomPluginHotkeys { get ; set ; } = new ObservableCollection < CustomPluginHotkey > ( ) ;
282
294
0 commit comments