This commit is contained in:
Jeremy Wu
2019-10-18 08:16:07 +11:00
parent 08f409993a
commit e1b211ed8e
2 changed files with 4 additions and 4 deletions

View File

@@ -21,7 +21,7 @@ namespace Wox.Plugin.Program
internal static UWP.Application[] _uwps { get; set; }
internal static Settings _settings { get; set; }
private static bool IsStartupIndexProgramsRequired => _settings.LastReindexTime.AddDays(3) < DateTime.Today;
private static bool IsStartupIndexProgramsRequired => _settings.LastIndexTime.AddDays(3) < DateTime.Today;
private static PluginInitContext _context;
@@ -58,7 +58,7 @@ namespace Wox.Plugin.Program
Task.WaitAll(a, b);
_settings.LastReindexTime = DateTime.Today;
_settings.LastIndexTime = DateTime.Today;
}
public void Save()
@@ -117,7 +117,7 @@ namespace Wox.Plugin.Program
Task.WaitAll(t1, t2);
_settings.LastReindexTime = DateTime.Today;
_settings.LastIndexTime = DateTime.Today;
}
public Control CreateSettingPanel()

View File

@@ -6,7 +6,7 @@ namespace Wox.Plugin.Program
{
public class Settings
{
public DateTime LastReindexTime { get; set; }
public DateTime LastIndexTime { get; set; }
public List<ProgramSource> ProgramSources { get; set; } = new List<ProgramSource>();
public List<DisabledProgramSource> DisabledProgramSources { get; set; } = new List<DisabledProgramSource>();
public string[] ProgramSuffixes { get; set; } = {"bat", "appref-ms", "exe", "lnk"};