From 02d298d633dbfc80e9812548be8306150c24f11f Mon Sep 17 00:00:00 2001 From: chenyuanbo Date: Fri, 15 May 2026 14:06:08 +0800 Subject: [PATCH] fix(touchpad): correct DConfig key name for gesture enabled MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use "touchPadEnabled" to match the key defined in org.deepin.dde.daemon.gesture schema, fixing touchpad gestures remaining active after disabling the touchpad. 修复触控板禁用后手势仍然可用的问题,DConfig key 名称大小写不匹配导致写入了错误的配置项。 Log: 修复禁用触控板后手势仍然可用的bug PMS: 360815 Influence: 禁用触控板后,触控板手势正确停止响应 --- inputdevices1/touchpad.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inputdevices1/touchpad.go b/inputdevices1/touchpad.go index b0708cf98..10a36393c 100644 --- a/inputdevices1/touchpad.go +++ b/inputdevices1/touchpad.go @@ -559,11 +559,11 @@ func enableGesture(enabled bool) { if err != nil { return } - if value, _ := dconfig.GetValueBool("touchpadEnabled"); value == enabled { + if value, _ := dconfig.GetValueBool("touchPadEnabled"); value == enabled { return } - dconfig.SetValue("touchpadEnabled", enabled) + dconfig.SetValue("touchPadEnabled", enabled) } func (tpad *Touchpad) initTouchpadDConfig() error {