summaryrefslogtreecommitdiff
path: root/protocols/Weather/src/weather_proto.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2025-04-06 19:45:37 +0300
committerGeorge Hazan <george.hazan@gmail.com>2025-04-06 19:45:37 +0300
commit96b6aa5171e1ba63aab8beb6aed48780016bb787 (patch)
tree01a6b0a8d5c079de4cb49905d29c89eb053972bb /protocols/Weather/src/weather_proto.cpp
parent7b14d12d7f84d63b1332aa1ba74c2c67f76c5095 (diff)
fixes #4942 (Weather: фрейм пропадает после перезапуска)
Diffstat (limited to 'protocols/Weather/src/weather_proto.cpp')
-rw-r--r--protocols/Weather/src/weather_proto.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Weather/src/weather_proto.cpp b/protocols/Weather/src/weather_proto.cpp
index 6df768e7ac..3c5f8f1057 100644
--- a/protocols/Weather/src/weather_proto.cpp
+++ b/protocols/Weather/src/weather_proto.cpp
@@ -32,8 +32,6 @@ CWeatherProto::CWeatherProto(const char *protoName, const wchar_t *userName) :
HookProtoEvent(ME_CLIST_DOUBLECLICKED, &CWeatherProto::BriefInfoEvt);
HookProtoEvent(ME_CLIST_PREBUILDCONTACTMENU, &CWeatherProto::BuildContactMenu);
- InitMwin();
-
// load options and set defaults
LoadOptions();
@@ -63,6 +61,8 @@ CWeatherProto::~CWeatherProto()
void CWeatherProto::OnModulesLoaded()
{
+ InitMwin();
+
// timer for the first update
m_impl.m_start.Start(5000); // first update is 5 sec after load