From e8202c9dec08896e74809e69e77f77494df743ba Mon Sep 17 00:00:00 2001 From: songwentao Date: Tue, 25 Jan 2022 10:30:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E9=A3=9E=E8=A1=8C?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E6=8F=92=E4=BB=B6=E6=98=BE=E7=A4=BA=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 飞行模式关闭直接移除插件,反之,显示插件。 Log: Bug: https://pms.uniontech.com/zentao/bug-view-110011.html Influence: 飞行模式关闭直接隐藏图标,反之,显示图标。 Change-Id: Ibcd4878308a954760ae686972de07228732a0067 --- gschema/com.deepin.dde.dock.module.gschema.xml | 2 +- plugins/airplane-mode/airplanemodeplugin.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gschema/com.deepin.dde.dock.module.gschema.xml b/gschema/com.deepin.dde.dock.module.gschema.xml index f612af1d1..bb662789e 100644 --- a/gschema/com.deepin.dde.dock.module.gschema.xml +++ b/gschema/com.deepin.dde.dock.module.gschema.xml @@ -376,7 +376,7 @@ - false + true Module Enable Control Module Enable diff --git a/plugins/airplane-mode/airplanemodeplugin.cpp b/plugins/airplane-mode/airplanemodeplugin.cpp index ce936f7a9..507ef3bb9 100644 --- a/plugins/airplane-mode/airplanemodeplugin.cpp +++ b/plugins/airplane-mode/airplanemodeplugin.cpp @@ -136,6 +136,7 @@ void AirplaneModePlugin::removePlugin() return; m_proxyInter->itemRemoved(this, AIRPLANEMODE_KEY); + m_proxyInter->saveValue(this, STATE_KEY, false); } void AirplaneModePlugin::addPlugin() @@ -144,6 +145,7 @@ void AirplaneModePlugin::addPlugin() return; m_proxyInter->itemAdded(this, AIRPLANEMODE_KEY); + m_proxyInter->saveValue(this, STATE_KEY, true); }