ntminer 6 years ago
parent
commit
0572e3972c

+ 1 - 0
src/AppViews0/Ucs/LocalMessagesConfig.xaml.cs

@@ -22,6 +22,7 @@ namespace NTMiner.Views.Ucs {
 
         public LocalMessagesConfig() {
             InitializeComponent();
+            VirtualRoot.Execute(new LoadKernelOutputKeywordCommand());
         }
     }
 }

+ 0 - 3
src/NTMinerRpcClient/KernelOutputKeyword/KernelOutputKeywordSet.cs

@@ -19,9 +19,6 @@ namespace NTMiner.KernelOutputKeyword {
             _connectionString = $"filename={dbFileFullName};journal=false";
             if (!isServer) {
                 VirtualRoot.BuildCmdPath<LoadKernelOutputKeywordCommand>(action: message => {
-                    if (!VirtualRoot.IsKernelOutputKeywordVisible) {
-                        return;
-                    }
                     DateTime localTimestamp = VirtualRoot.LocalKernelOutputKeywordSetTimestamp;
                     // 如果已知服务器端最新内核输出关键字时间戳不比本地已加载的最新内核输出关键字时间戳新就不用加载了
                     if (message.KnowKernelOutputKeywordTimestamp <= Timestamp.GetTimestamp(localTimestamp)) {

+ 0 - 9
src/NTMinerlib/VirtualRoot.cs

@@ -112,15 +112,6 @@ namespace NTMiner {
             _isServerMessagesVisible = value;
         }
 
-        private static bool _isKernelOutputKeywordVisible = false;
-        public static bool IsKernelOutputKeywordVisible {
-            get { return _isKernelOutputKeywordVisible; }
-        }
-
-        public static void SetIsKernelOutputKeywordVisible(bool value) {
-            _isKernelOutputKeywordVisible = value;
-        }
-
         public static ILocalIpSet LocalIpSet { get; private set; }
         public static IObjectSerializer JsonSerializer { get; private set; }