From 0656ddd50a4eb557fccccae7b0996e02eded9958 Mon Sep 17 00:00:00 2001 From: bao-qian Date: Mon, 13 Feb 2017 00:49:09 +0000 Subject: [PATCH] fixup 30dfad29f6100153247db4edb6753d8db5112888 --- Wox.Infrastructure/Storage/JsonStorage.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Wox.Infrastructure/Storage/JsonStorage.cs b/Wox.Infrastructure/Storage/JsonStorage.cs index abe1fd7b5e..191013fb2f 100644 --- a/Wox.Infrastructure/Storage/JsonStorage.cs +++ b/Wox.Infrastructure/Storage/JsonStorage.cs @@ -67,7 +67,11 @@ namespace Wox.Infrastructure.Storage private void LoadDefault() { - BackupOriginFile(); + if (File.Exists(FilePath)) + { + BackupOriginFile(); + } + _data = JsonConvert.DeserializeObject("{}", _serializerSettings); Save(); }