@@ -21,17 +21,17 @@ public class Settings
21
21
public List < AccessLink > IndexSearchExcludedSubdirectoryPaths { get ; set ; } = new List < AccessLink > ( ) ;
22
22
23
23
public string SearchActionKeyword { get ; set ; } = Query . GlobalPluginWildcardSign ;
24
- public bool EnabledSearchActionKeyword { get ; set ; } = true ;
24
+ public bool SearchActionKeywordEnabled { get ; set ; } = true ;
25
25
26
26
public string FileContentSearchActionKeyword { get ; set ; } = Constants . DefaultContentSearchActionKeyword ;
27
27
28
28
public string PathSearchActionKeyword { get ; set ; } = Query . GlobalPluginWildcardSign ;
29
29
30
- public bool EnabledPathSearchKeyword { get ; set ; }
30
+ public bool PathSearchKeywordEnabled { get ; set ; }
31
31
32
32
public string IndexSearchActionKeyword { get ; set ; } = Query . GlobalPluginWildcardSign ;
33
33
34
- public bool EnabledIndexOnlySearchKeyword { get ; set ; }
34
+ public bool IndexOnlySearchKeywordEnabled { get ; set ; }
35
35
36
36
internal enum ActionKeyword
37
37
{
@@ -60,17 +60,17 @@ internal enum ActionKeyword
60
60
61
61
internal bool ? GetActionKeywordEnable ( ActionKeyword actionKeyword ) => actionKeyword switch
62
62
{
63
- ActionKeyword . SearchActionKeyword => EnabledSearchActionKeyword ,
64
- ActionKeyword . PathSearchActionKeyword => EnabledPathSearchKeyword ,
65
- ActionKeyword . IndexSearchActionKeyword => EnabledIndexOnlySearchKeyword ,
63
+ ActionKeyword . SearchActionKeyword => SearchActionKeywordEnabled ,
64
+ ActionKeyword . PathSearchActionKeyword => PathSearchKeywordEnabled ,
65
+ ActionKeyword . IndexSearchActionKeyword => IndexOnlySearchKeywordEnabled ,
66
66
_ => null
67
67
} ;
68
68
69
69
internal void SetActionKeywordEnable ( ActionKeyword actionKeyword , bool enable ) => _ = actionKeyword switch
70
70
{
71
- ActionKeyword . SearchActionKeyword => EnabledSearchActionKeyword = enable ,
72
- ActionKeyword . PathSearchActionKeyword => EnabledPathSearchKeyword = enable ,
73
- ActionKeyword . IndexSearchActionKeyword => EnabledIndexOnlySearchKeyword = enable ,
71
+ ActionKeyword . SearchActionKeyword => SearchActionKeywordEnabled = enable ,
72
+ ActionKeyword . PathSearchActionKeyword => PathSearchKeywordEnabled = enable ,
73
+ ActionKeyword . IndexSearchActionKeyword => IndexOnlySearchKeywordEnabled = enable ,
74
74
_ => throw new ArgumentOutOfRangeException ( nameof ( actionKeyword ) , actionKeyword , "Unexpected property" )
75
75
} ;
76
76
}
0 commit comments