feat: add DConfig to control dock network icon interaction - #589
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: wjyrich The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Added a DConfig-based setting to enable or disable click, touch, and hover interactions on the dock network icon. This allows users to prevent accidental interactions while keeping the quick panel entry unaffected. Log: Add DConfig support for dock network icon interaction control Influence: 1. Verify that dock network icon click, touch long-press, and hover interactions work when setting is enabled (default) 2. Test that interactions are disabled when setting is disabled 3. Verify tooltip does not appear when setting is disabled 4. Ensure quick panel network entry remains functional regardless of setting 5. Test that the setting change takes effect without restarting the dock 6. Check that no visual artifacts or crashes occur after toggling the setting feat: 新增 DConfig 控制任务栏网络图标交互 添加基于 DConfig 的配置项,用于启用或禁用任务栏网络图标的点击、触摸和悬 停交互。这允许用户避免意外操作,同时不影响快捷面板中的网络入口。 Log: 新增任务栏网络图标交互控制的 DConfig 支持 Influence: 1. 验证启用设置(默认)时,任务栏网络图标的点击、触摸长按和悬停交互正常 工作 2. 测试禁用设置后,交互功能被关闭 3. 验证禁用设置后不显示提示信息 4. 确保快捷面板网络入口不受设置影响,始终可用 5. 测试设置更改后无需重启任务栏即可生效 6. 检查切换设置后不会出现视觉异常或崩溃 PMS: TASK-393299
deepin pr auto review★ 总体评分:90分■ 【总体评价】
■ 【详细分析】
■ 【改进建议代码示例】 // 当前代码已具备较高质量,仅需确认版权年份是否正确
diff --git a/dock-network-plugin/networkplugin.h b/dock-network-plugin/networkplugin.h
index 5d700dad..dcfbb0d9 100644
--- a/dock-network-plugin/networkplugin.h
+++ b/dock-network-plugin/networkplugin.h
@@ -1,4 +1,4 @@
-// SPDX-FileCopyrightText: 2018 - 2022 UnionTech Software Technology Co., Ltd.
+// SPDX-FileCopyrightText: 2018 - 2024 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: GPL-3.0-or-later |
Added a DConfig-based setting to enable or disable click, touch, and hover interactions on the dock network icon. This allows users to prevent accidental interactions while keeping the quick panel entry unaffected.
Log: Add DConfig support for dock network icon interaction control
Influence:
feat: 新增 DConfig 控制任务栏网络图标交互
添加基于 DConfig 的配置项,用于启用或禁用任务栏网络图标的点击、触摸和悬
停交互。这允许用户避免意外操作,同时不影响快捷面板中的网络入口。
Log: 新增任务栏网络图标交互控制的 DConfig 支持
Influence:
PMS: TASK-393299