mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Add Visible api
This commit is contained in:
parent
f2358a56e8
commit
30b9b1f371
2 changed files with 9 additions and 0 deletions
|
|
@ -53,6 +53,11 @@ public class BasePluginHotkey
|
|||
/// Indicates whether the hotkey is editable by the user in the settings page.
|
||||
/// </summary>
|
||||
public bool Editable { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// Whether to show the hotkey in the settings page.
|
||||
/// </summary>
|
||||
public bool Visible { get; set; } = true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
|
|
@ -124,6 +124,7 @@ namespace Flow.Launcher.Plugin.Explorer
|
|||
Glyph = new GlyphInfo(FontFamily: "/Resources/#Segoe Fluent Icons", Glyph: "\ue838"),
|
||||
DefaultHotkey = "Ctrl+Enter",
|
||||
Editable = false,
|
||||
Visible = true,
|
||||
Action = (r) =>
|
||||
{
|
||||
if (r.ContextData is SearchResult record)
|
||||
|
|
@ -160,6 +161,7 @@ namespace Flow.Launcher.Plugin.Explorer
|
|||
Glyph = new GlyphInfo(FontFamily: "/Resources/#Segoe Fluent Icons", Glyph: "\ue700"),
|
||||
DefaultHotkey = "Alt+Enter",
|
||||
Editable = false,
|
||||
Visible = true,
|
||||
Action = (r) =>
|
||||
{
|
||||
if (r.ContextData is SearchResult record && record.Type is not ResultType.Volume)
|
||||
|
|
@ -185,6 +187,7 @@ namespace Flow.Launcher.Plugin.Explorer
|
|||
Glyph = new GlyphInfo(FontFamily: "/Resources/#Segoe Fluent Icons", Glyph: "\uE7EF"),
|
||||
DefaultHotkey = "Ctrl+Shift+Enter",
|
||||
Editable = false,
|
||||
Visible = true,
|
||||
Action = (r) =>
|
||||
{
|
||||
if (r.ContextData is SearchResult record)
|
||||
|
|
@ -223,6 +226,7 @@ namespace Flow.Launcher.Plugin.Explorer
|
|||
Glyph = new GlyphInfo(FontFamily: "/Resources/#Segoe Fluent Icons", Glyph: "\ue8ac"),
|
||||
DefaultHotkey = "F2",
|
||||
Editable = true,
|
||||
Visible = true,
|
||||
Action = (r) =>
|
||||
{
|
||||
if (r.ContextData is SearchResult record)
|
||||
|
|
|
|||
Loading…
Reference in a new issue