Skip to content
Commit 871fd3df authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Don't keep a full NetworkModel instance alive when it's not visible

Summary:
This was implemented as an optimisation in Plasma at some point, where all full
representations are displayed at all times.
This would mean doing synchronous calls at start querying every wifi connection
we ever did and keeping the view fresh at all times.
This patch changes it so the networks model is only present when the full
representation is on display.

Test Plan: Tested by hand both with plasmoidviewer and a full plasmashell.

Reviewers: #plasma, jgrulich

Reviewed By: jgrulich

Subscribers: ngraham, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D21501
parent 064042f5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment