From 64632c4deee4ee4d98738630524255026163107e Mon Sep 17 00:00:00 2001 From: myml Date: Thu, 16 Nov 2023 17:39:31 +0800 Subject: [PATCH] feat: hide account login in community version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 由于日志同步功能在社区版本还不可用 在社区版系统隐藏账户登陆 Log: Issues: https://github.com/linuxdeepin/developer-center/issues/5912 --- .../src/calendarDataManager/daccountmanagemodule.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/calendar-service/src/calendarDataManager/daccountmanagemodule.cpp b/calendar-service/src/calendarDataManager/daccountmanagemodule.cpp index f17727fe..85386f2b 100644 --- a/calendar-service/src/calendarDataManager/daccountmanagemodule.cpp +++ b/calendar-service/src/calendarDataManager/daccountmanagemodule.cpp @@ -6,6 +6,7 @@ #include "units.h" #include "calendarprogramexitcontrol.h" +#include const QString firstDayOfWeek_key = "firstDayOfWeek"; const QString shortTimeFormat_key = "shortTimeFormat"; @@ -23,6 +24,9 @@ DAccountManageModule::DAccountManageModule(QObject *parent) &DAccountManageModule::slotSettingChange); } m_isSupportUid = m_syncFileManage->getSyncoperation()->hasAvailable(); + if(Dtk::Core::DSysInfo::isCommunityEdition()){ + m_isSupportUid = false; + } //新文件路径 QString newDbPath = getDBPath(); QString newDB(newDbPath + "/" + "accountmanager.db");