mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 19:57:07 +02:00
fix #185. Loading index cache on startup.
This commit is contained in:
@@ -4,14 +4,16 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Wox.Infrastructure.Storage.UserSettings {
|
||||
public class FolderLink {
|
||||
namespace Wox.Infrastructure.Storage.UserSettings
|
||||
{
|
||||
public class FolderLink
|
||||
{
|
||||
[JsonProperty]
|
||||
public string Path { get; set; }
|
||||
public string Path { get; set; }
|
||||
|
||||
public string Nickname
|
||||
{
|
||||
get { return Path.Split(new char[] { System.IO.Path.DirectorySeparatorChar }, StringSplitOptions.None).Last(); }
|
||||
}
|
||||
public string Nickname
|
||||
{
|
||||
get { return Path.Split(new char[] { System.IO.Path.DirectorySeparatorChar }, StringSplitOptions.None).Last(); }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ using Newtonsoft.Json;
|
||||
|
||||
namespace Wox.Infrastructure.Storage.UserSettings
|
||||
{
|
||||
public class UserSettingStorage : BaseStorage<UserSettingStorage>
|
||||
public class UserSettingStorage : JsonStrorage<UserSettingStorage>
|
||||
{
|
||||
[JsonProperty]
|
||||
public bool DontPromptUpdateMsg { get; set; }
|
||||
@@ -146,7 +146,7 @@ namespace Wox.Infrastructure.Storage.UserSettings
|
||||
get { return "config"; }
|
||||
}
|
||||
|
||||
protected override UserSettingStorage LoadDefaultConfig()
|
||||
protected override UserSettingStorage LoadDefault()
|
||||
{
|
||||
DontPromptUpdateMsg = false;
|
||||
Theme = "Dark";
|
||||
@@ -165,7 +165,7 @@ namespace Wox.Infrastructure.Storage.UserSettings
|
||||
return this;
|
||||
}
|
||||
|
||||
protected override void OnAfterLoadConfig(UserSettingStorage storage)
|
||||
protected override void OnAfterLoad(UserSettingStorage storage)
|
||||
{
|
||||
if (storage.CustomizedPluginConfigs == null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user