From 463f417a42670ae0d15f840eb782d14ae7be0b3b Mon Sep 17 00:00:00 2001
From: Vic <10308169+VictoriousRaptor@users.noreply.github.com>
Date: Thu, 20 Oct 2022 18:16:46 +0800
Subject: [PATCH] bugfix
---
.../Views/Models/ProgramSource.cs | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/Plugins/Flow.Launcher.Plugin.Program/Views/Models/ProgramSource.cs b/Plugins/Flow.Launcher.Plugin.Program/Views/Models/ProgramSource.cs
index 7d7ca8902..a2cdb44f1 100644
--- a/Plugins/Flow.Launcher.Plugin.Program/Views/Models/ProgramSource.cs
+++ b/Plugins/Flow.Launcher.Plugin.Program/Views/Models/ProgramSource.cs
@@ -16,7 +16,7 @@ namespace Flow.Launcher.Plugin.Program.Views.Models
{
private string name;
- public string Location;
+ public string Location { get; set; }
public string Name { get => name ?? new DirectoryInfo(Location).Name; set => name = value; }
public bool Enabled { get; set; } = true;
private string uid { get; set; }
@@ -26,13 +26,13 @@ namespace Flow.Launcher.Plugin.Program.Views.Models
///
public string UniqueIdentifier { get => uid; set => uid = value.ToLowerInvariant(); }
- //public ProgramSource() {}
+ public ProgramSource() { } // only for json deserialization
///
- /// Custom user added source.
+ /// Add source by location
///
- ///
- ///
+ /// location of program source
+ /// enabled
public ProgramSource(string location, bool enabled=true)
{
Location = location;
@@ -74,7 +74,7 @@ namespace Flow.Launcher.Plugin.Program.Views.Models
public class DisabledProgramSource : ProgramSource
{
- //public DisabledProgramSource() { }
+ public DisabledProgramSource() { } // only for json deserialization
public DisabledProgramSource(string location) : base(location, false) { }