Revert "fix: Fix airplane mode tips display logic"#492
Revert "fix: Fix airplane mode tips display logic"#492deepin-bot[bot] merged 1 commit intolinuxdeepin:masterfrom
Conversation
This reverts commit 95539e9.
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR reverts a previous change to airplane mode tips logic by inlining the wireless-support check into supportAirplaneMode() and simplifying the UI visibility condition so that airplane mode tips depend only on airplane mode state, not on detected wireless devices. Class diagram for airplane mode support and tips logicclassDiagram
class NetManagerThreadPrivate {
- bool m_airplaneModeEnabled
+ bool AirplaneModeEnabled() const
+ bool supportAirplaneMode() const
+ void setEnabled(bool enabled)
+ void setAutoScanInterval(int ms)
+ void setAutoScanEnabled(bool enabled)
}
class NetManagerPrivate {
- bool m_airplaneMode
- NetManagerThreadPrivate* m_managerThread
+ void updateAirplaneMode(bool enabled)
+ void updateItemVisible(QString itemId, bool visible)
}
NetManagerPrivate --> NetManagerThreadPrivate : uses
note for NetManagerThreadPrivate "supportWireless method removed; its wifi detection logic is now in supportAirplaneMode"
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
deepin pr auto review这段代码的 diff 主要进行了两个方面的修改:
以下是从语法逻辑、代码质量、代码性能和代码安全四个方面的详细审查意见: 1. 语法逻辑
2. 代码质量
3. 代码性能
4. 代码安全
改进建议
|
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: caixr23, ut003640 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 |
|
/forcemerge |
|
This pr force merged! (status: unstable) |
This reverts commit 95539e9.
Summary by Sourcery
Revert the previous change to airplane mode tips handling and restore the original behavior.
Bug Fixes:
Enhancements: