mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 20:27:36 +02:00
Update class to inherite from Settings.ProgramSource
This commit is contained in:
@@ -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
|
namespace Wox.Plugin.Program.Views.Models
|
||||||
{
|
{
|
||||||
public class ProgramSource
|
public class ProgramSource : Settings.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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user