From 0374e9f56fb1608be3feb055c99159c0ec343500 Mon Sep 17 00:00:00 2001 From: Vic <10308169+VictoriousRaptor@users.noreply.github.com> Date: Mon, 28 Nov 2022 22:13:55 +0800 Subject: [PATCH] set default values of fields --- Plugins/Flow.Launcher.Plugin.Program/Programs/UWP.cs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.Program/Programs/UWP.cs b/Plugins/Flow.Launcher.Plugin.Program/Programs/UWP.cs index c287e31e9..d4a41fc07 100644 --- a/Plugins/Flow.Launcher.Plugin.Program/Programs/UWP.cs +++ b/Plugins/Flow.Launcher.Plugin.Program/Programs/UWP.cs @@ -365,14 +365,12 @@ namespace Flow.Launcher.Plugin.Program.Programs { private string _uid = string.Empty; public string UniqueIdentifier { get => _uid; set => _uid = value == null ? string.Empty : value.ToLowerInvariant(); } - public string DisplayName { get; set; } - public string Description { get; set; } - public string UserModelId { get; set; } - public string BackgroundColor { get; set; } = "transparent"; - - public string EntryPoint { get; set; } + public string DisplayName { get; set; } = string.Empty; + public string Description { get; set; } = string.Empty; + public string UserModelId { get; set; } = string.Empty; + public string BackgroundColor { get; set; } = string.Empty; public string Name => DisplayName; - public string Location { get; set; } + public string Location { get; set; } = string.Empty; public bool Enabled { get; set; } = false; public bool CanRunElevated { get; set; } = false;