Update class to inherite from Settings.ProgramSource

This commit is contained in:
Jeremy Wu
2019-09-11 07:16:38 +10:00
parent 10fb76377c
commit 1ca9389110

View File

@@ -1,19 +1,5 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Wox.Plugin.Program.Views.Models
{
public class ProgramSource
{
private string name;
public string Location { get; set; }
public string Name { get => name ?? new DirectoryInfo(Location).Name; set => name = value; }
public string UniqueIdentifier { get; set; }
public bool Enabled { get; set; } = true;
}
public class ProgramSource : Settings.ProgramSource { }
}