Refactor and fix the mobile wifi kcm
ClosedPublic

Authored by tfella on Apr 13 2020, 4:37 PM.

Details

Summary

Previous refactoring and existing errors made editing connections impossible. Also, existing work for adding hidden networks was broken. By fixing these problems, this patch implements T12893.

The checks for signal strength being > 0 were removed to make make hidden networks show up in the list

Test Plan

Test adding and editing connections

Diff Detail

Repository
R116 Plasma Network Management Applet
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
tfella created this revision.Apr 13 2020, 4:37 PM
Restricted Application added a project: Plasma. · View Herald TranscriptApr 13 2020, 4:37 PM
Restricted Application added a reviewer: jgrulich. · View Herald Transcript
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
tfella requested review of this revision.Apr 13 2020, 4:37 PM
tfella edited the summary of this revision. (Show Details)Apr 13 2020, 4:48 PM
tfella updated this revision to Diff 80076.Apr 14 2020, 10:09 AM

Minor Fixes

jgrulich edited reviewers, added: ngraham; removed: jgrulich.Apr 14 2020, 11:32 AM
Restricted Application added a reviewer: jgrulich. · View Herald TranscriptApr 14 2020, 11:32 AM
Restricted Application added a reviewer: jgrulich. · View Herald TranscriptApr 14 2020, 11:32 AM
jgrulich accepted this revision.Apr 14 2020, 11:44 AM

I wanted to let @ngraham to review this UI wise, but I see there are no UI changes. I don't follow mobile KCM development so I'm not sure I'm the right person to review this, but it looks good to me. I haven't tried it, but I believe you.

libs/models/mobileproxymodel.cpp
66

This is no longer needed anyway as I already filter out local access points (in this meaning it is probably an AP which I share as hotspot).

See https://cgit.kde.org/plasma-nm.git/diff/libs/models/networkmodel.cpp?id=5e55e45d8794eb6c4840b2916e723177c18cd695.

This revision is now accepted and ready to land.Apr 14 2020, 11:44 AM
jbbgameich accepted this revision.Apr 14 2020, 1:52 PM
nicolasfella added inline comments.
mobile/wifi/package/contents/ui/NetworkSettings.qml
27

not needed

mobile/wifi/wifisettings.cpp
65

space after if

tfella updated this revision to Diff 80143.Apr 14 2020, 5:30 PM
tfella marked an inline comment as done.

More fixes

tfella marked 2 inline comments as done.Apr 14 2020, 5:31 PM
This revision was automatically updated to reflect the committed changes.