File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5050 "description" : " 此配置项默认为空。如果specialComType==8,程序则启用此项配置。" ,
5151 "permissions" : " readwrite" ,
5252 "visibility" : " private"
53+ },
54+ "showScreenSize" : {
55+ "value" : true ,
56+ "serial" : 0 ,
57+ "flags" : [
58+ " global"
59+ ],
60+ "name" : " Is show screen size" ,
61+ "name[zh_CN]" : " 是否显示屏幕尺寸" ,
62+ "description" : " 是否显示屏幕尺寸,默认为true" ,
63+ "permissions" : " readwrite" ,
64+ "visibility" : " private"
5365 }
5466 }
5567}
Original file line number Diff line number Diff line change 1- // SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd.
1+ // SPDX-FileCopyrightText: 2022 - 2026 UnionTech Software Technology Co., Ltd.
22//
33// SPDX-License-Identifier: GPL-3.0-or-later
44
@@ -403,7 +403,15 @@ void DeviceMonitor::loadOtherDeviceInfo()
403403 }
404404 }
405405 addOtherDeviceInfo (" Primary Monitor" , m_MainScreen);
406- addOtherDeviceInfo (" Size" , m_ScreenSize);
406+ bool showScreenSize { true };
407+ #ifdef DTKCORE_CLASS_DConfigFile
408+ DConfig *dconfig = DConfig::create (" org.deepin.devicemanager" ," org.deepin.devicemanager" );
409+ if (dconfig && dconfig->isValid () && dconfig->keyList ().contains (" showScreenSize" )){
410+ showScreenSize = dconfig->value (" showScreenSize" ).toBool ();
411+ }
412+ #endif
413+ if (showScreenSize)
414+ addOtherDeviceInfo (" Size" , m_ScreenSize);
407415 addOtherDeviceInfo (" Serial Number" , m_SerialNumber);
408416// addOtherDeviceInfo("Product Date", m_ProductionWeek);
409417
You can’t perform that action at this time.
0 commit comments