Hide actions that can't be taken if the system doesn't have a network
Add its own messageChanged NOTIFY signal to the message property
The message property also changes when the network state changes, not only
when isActiveChanged is emitted, so let's create its own signal that is
emitted in both cases.
Delay PkUpdates::checkUpdates calls if the network state is offline
If PkUpdates::checkUpdates is called and the network state is offline,
delay the check for updates until the network is online again.
This fixes the problem that when the user logs in, the applet is run
and just after the PkUpdates object is created, checkUpdates is called
(from main itself). But at that point the user might have not entered
the wifi password so the check would fail. Now, if we detect there's
no network, we just delay the check until the network state is online.
Note that some of these fixes may also need either one or more of the following
fixes depending on your system: