[kdeplasma-addons] [Bug 409393] Weather widget doesn't refresh after resume from suspend

2019-10-21 Thread Friedrich W. H. Kossebau
https://bugs.kde.org/show_bug.cgi?id=409393

Friedrich W. H. Kossebau  changed:

   What|Removed |Added

   Assignee|kosse...@kde.org|plasma-b...@kde.org

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeplasma-addons] [Bug 409393] Weather widget doesn't refresh after resume from suspend

2019-08-20 Thread Christoph Feck
https://bugs.kde.org/show_bug.cgi?id=409393

--- Comment #3 from Christoph Feck  ---
Doesn't it work if you only use the second connect() call?

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeplasma-addons] [Bug 409393] Weather widget doesn't refresh after resume from suspend

2019-08-09 Thread Manuel Alcaraz
https://bugs.kde.org/show_bug.cgi?id=409393

Manuel Alcaraz  changed:

   What|Removed |Added

 CC||manuelalcaraz...@gmail.com

--- Comment #2 from Manuel Alcaraz  ---
I could fix this, but I don't know what is the correct name for the weather in
/org/kde/kcmshell_clock. Something like /org/kde/kcmshell_weather?
Thanks

My actual diff (not tested):

diff --git a/dataengines/weather/weatherengine.cpp
b/dataengines/weather/weatherengine.cpp
index 53189021..301ae3f9 100644
--- a/dataengines/weather/weatherengine.cpp
+++ b/dataengines/weather/weatherengine.cpp
@@ -20,6 +20,7 @@

 #include "weatherengine.h"

+#include 
 #include 

 #include 
@@ -46,6 +47,14 @@ WeatherEngine::WeatherEngine(QObject *parent, const
QVariantList& args)
 // Get the list of available plugins but don't load them
 connect(KSycoca::self(), static_cast(&KSycoca::databaseChanged),
 this, &WeatherEngine::updateIonList);
+
+dbus.connect(QString(), "/org/kde/kcmshell_clock",
"org.kde.kcmshell_clock", "weatherUpdated", this, SLOT(startReconnect()));
+dbus.connect(QStringLiteral("org.kde.Solid.PowerManagement"),
+
QStringLiteral("/org/kde/Solid/PowerManagement/Actions/SuspendSession"),
+
QStringLiteral("org.kde.Solid.PowerManagement.Actions.SuspendSession"),
+ QStringLiteral("resumingFromSuspend"),
+ this,
+ SLOT(startReconnect()));

 updateIonList();
 }

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeplasma-addons] [Bug 409393] Weather widget doesn't refresh after resume from suspend

2019-07-25 Thread Christoph Feck
https://bugs.kde.org/show_bug.cgi?id=409393

Christoph Feck  changed:

   What|Removed |Added

   Keywords||junior-jobs

--- Comment #1 from Christoph Feck  ---
The "time" data engine connects to "resumingFromSuspend". The "weather" engine
would need similar code.

https://cgit.kde.org/plasma-workspace.git/tree/dataengines/time/timeengine.cpp

https://cgit.kde.org/plasma-workspace.git/tree/dataengines/weather/weatherengine.cpp

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeplasma-addons] [Bug 409393] Weather widget doesn't refresh after resume from suspend

2019-07-08 Thread Patrick Silva
https://bugs.kde.org/show_bug.cgi?id=409393

Patrick Silva  changed:

   What|Removed |Added

 CC||bugsefor...@gmx.com

-- 
You are receiving this mail because:
You are watching all bug changes.