@@ -91,7 +91,7 @@ internal static List<Result> GetResultList(
91
91
{
92
92
Action = _ => DoOpenSettingsAction ( entry ) ,
93
93
IcoPath = type == "AppSettingsApp" ? windowsSettingIconPath : controlPanelIconPath ,
94
- SubTitle = $ " { Resources . Area } \" { entry . Area } \" { Resources . SubtitlePreposition } { entry . Type } " ,
94
+ SubTitle = GetSubtitle ( entry . Area , type ) ,
95
95
Title = entry . Name + entry . glyph ,
96
96
ContextData = entry ,
97
97
Score = score
@@ -101,6 +101,13 @@ internal static List<Result> GetResultList(
101
101
return resultList ;
102
102
}
103
103
104
+ private static string GetSubtitle ( string section , string entryType )
105
+ {
106
+ var settingType = entryType == "AppSettingsApp" ? "System settings" : "Control Panel" ;
107
+
108
+ return $ "{ settingType } > { section } ";
109
+ }
110
+
104
111
/// <summary>
105
112
/// Add a tool-tip to the given <see cref="Result"/>, based o the given <see cref="IWindowsSetting"/>.
106
113
/// </summary>
@@ -109,8 +116,10 @@ internal static List<Result> GetResultList(
109
116
private static void AddOptionalToolTip ( WindowsSetting entry , Result result )
110
117
{
111
118
var toolTipText = new StringBuilder ( ) ;
119
+
120
+ var settingType = entry . Type == "AppSettingsApp" ? "System settings" : "Control Panel" ;
112
121
113
- toolTipText . AppendLine ( $ "{ Resources . Application } : { entry . Type } ") ;
122
+ toolTipText . AppendLine ( $ "{ Resources . Application } : { settingType } ") ;
114
123
toolTipText . AppendLine ( $ "{ Resources . Area } : { entry . Area } ") ;
115
124
116
125
if ( entry . AltNames != null && entry . AltNames . Any ( ) )
0 commit comments