This commit is contained in:
Vic 2022-10-20 20:54:16 +08:00
parent 463f417a42
commit cbcae41d0a
2 changed files with 2 additions and 4 deletions

View file

@ -6,7 +6,7 @@ namespace Flow.Launcher.Plugin.Program.Programs
{
List<Result> ContextMenus(IPublicAPI api);
Result Result(string query, IPublicAPI api);
string UniqueIdentifier { get; set; } // get should guarantee lowercase
string UniqueIdentifier { get; set; }
string Name { get; }
string Location { get; }
bool Enabled { get; }

View file

@ -298,7 +298,7 @@ namespace Flow.Launcher.Plugin.Program.Programs
public class Application : IProgram
{
public string AppListEntry { get; set; }
public string UniqueIdentifier { get => _uid; set => _uid = value.ToLowerInvariant(); }
public string UniqueIdentifier { get; set; }
public string DisplayName { get; set; }
public string Description { get; set; }
public string UserModelId { get; set; }
@ -317,8 +317,6 @@ namespace Flow.Launcher.Plugin.Program.Programs
public Application() { }
private string _uid = string.Empty;
public Result Result(string query, IPublicAPI api)
{
string title;