Просмотр исходного кода

#IQRV #comment [ResourceWatcher] 部分接口移动到开机第一次启动才处理

gifur 4 лет назад
Родитель
Сommit
e392f93988
1 измененных файлов с 3 добавлено и 6 удалено
  1. 3 6
      Module/mod_ResourceWatcher/ResourceWatcherFSM.cpp

+ 3 - 6
Module/mod_ResourceWatcher/ResourceWatcherFSM.cpp

@@ -547,11 +547,10 @@ void ResourceWatcherFSM::AfterInit()
     if (m_bFirstRunAfterBoot) {
         UploadSysVersionInfo();
         ConfirmWindowEffectHasBeenOpen();
+        ConfirmDNSConfigHasSet();
+        ConfirmDDEClipboardDisable();
     }
-    ///**TODO(Gifur@9/8/2021): 迁移 */
-    ConfirmDNSConfigHasSet();
-    ConfirmDDEClipboardDisable();
-    ConfirmNotificationCenterDisable();
+    //ConfirmNotificationCenterDisable();
 #endif //_MSC_VER
 }
 
@@ -4011,8 +4010,6 @@ void ResourceWatcherFSM::switchWindowsEffect(const char* cfgFilePath, bool enabl
 
 BOOL ResourceWatcherFSM::readDNSConfigFile(CSimpleStringA & result)
 {
-    LOG_FUNCTION();
-
     std::string succStr, errStr;
     if (SP::Module::Util::ShelllExecute("cat /etc/resolv.conf", succStr, errStr)) {
         result = succStr.c_str();