Skip to content

Commit a47ce1c

Browse files
committed
Add Glyph Support for some settings
1 parent 123cad8 commit a47ce1c

File tree

3 files changed

+91
-90
lines changed

3 files changed

+91
-90
lines changed

Plugins/Flow.Launcher.Plugin.WindowsSettings/Classes/WindowsSetting.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public WindowsSetting()
5757
/// <summary>
5858
/// Gets or sets the Glyph of this setting
5959
/// </summary>
60-
public string? glyph { get; set; }
60+
public GlyphInfo? IconGlyph { get; set; }
6161

6262
/// <summary>
6363
/// Gets or sets a additional note of this settings.

Plugins/Flow.Launcher.Plugin.WindowsSettings/Helper/ResultHelper.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,9 @@ internal static List<Result> GetResultList(
116116
{
117117
Action = _ => DoOpenSettingsAction(entry),
118118
IcoPath = type == "AppSettingsApp" ? windowsSettingIconPath : controlPanelIconPath,
119+
Glyph = entry.IconGlyph,
119120
SubTitle = GetSubtitle(entry.Area, type),
120-
Title = entry.Name + entry.glyph,
121+
Title = entry.Name,
121122
ContextData = entry,
122123
Score = score - (type == "TaskLink" ? TaskLinkScorePanelty : 0),
123124
};

0 commit comments

Comments
 (0)