fix: 优化飞行模式插件显示逻辑

飞行模式关闭直接移除插件,反之,显示插件。

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-110011.html
Influence: 飞行模式关闭直接隐藏图标,反之,显示图标。
Change-Id: Ibcd4878308a954760ae686972de07228732a0067
This commit is contained in:
songwentao 2022-01-25 10:30:18 +08:00
parent 9c8ac3d800
commit e8202c9dec
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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);
}