mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-01 07:05:48 +00:00
fix: 优化飞行模式插件显示逻辑
飞行模式关闭直接移除插件,反之,显示插件。 Log: Bug: https://pms.uniontech.com/zentao/bug-view-110011.html Influence: 飞行模式关闭直接隐藏图标,反之,显示图标。 Change-Id: Ibcd4878308a954760ae686972de07228732a0067
This commit is contained in:
parent
9c8ac3d800
commit
e8202c9dec
@ -376,7 +376,7 @@
|
||||
</description>
|
||||
</key>
|
||||
<key type="b" name="enable">
|
||||
<default>false</default>
|
||||
<default>true</default>
|
||||
<summary>Module Enable</summary>
|
||||
<description>
|
||||
Control Module Enable
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user