From 67f83ebdce296c4bb9e7b8490d8bf862b5e6dc02 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 27 Jan 2025 11:37:20 +0300 Subject: =?UTF-8?q?fixes=20#4844=20(Weather:=20=D0=BD=D0=B0=D1=81=D1=82?= =?UTF-8?q?=D1=80=D0=BE=D0=B9=D0=BA=D0=B0=20"=D0=9E=D0=B1=D0=BD=D0=BE?= =?UTF-8?q?=D0=B2=D0=BB=D1=8F=D1=82=D1=8C=20=D0=BF=D0=BE=D0=B3=D0=BE=D0=B4?= =?UTF-8?q?=D1=83=20=D0=BF=D1=80=D0=B8=20=D0=B7=D0=B0=D0=BF=D1=83=D1=81?= =?UTF-8?q?=D0=BA=D0=B5=20Miranda=20NG"=20=D0=BD=D0=B5=20=D1=80=D0=B0?= =?UTF-8?q?=D0=B1=D0=BE=D1=82=D0=B0=D0=B5=D1=82)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocols/Weather/src/proto.h | 1 - protocols/Weather/src/resource.h | 1 - protocols/Weather/src/weather_opt.cpp | 4 ---- 3 files changed, 6 deletions(-) (limited to 'protocols/Weather/src') diff --git a/protocols/Weather/src/proto.h b/protocols/Weather/src/proto.h index 5b3abb45f8..e83fee46eb 100644 --- a/protocols/Weather/src/proto.h +++ b/protocols/Weather/src/proto.h @@ -38,7 +38,6 @@ struct MYOPTIONS // main options uint8_t AutoUpdate; uint8_t CAutoUpdate; - uint8_t StartupUpdate; uint8_t UpdateOnlyConditionChanged; uint8_t RemoveOldData; uint8_t MakeItalic; diff --git a/protocols/Weather/src/resource.h b/protocols/Weather/src/resource.h index a975a51827..701feeacf9 100644 --- a/protocols/Weather/src/resource.h +++ b/protocols/Weather/src/resource.h @@ -30,7 +30,6 @@ #define IDC_AVATARSIZE 2006 #define IDC_UPDATE 2007 #define IDC_BTITLE 2008 -#define IDC_STARTUPUPD 2008 #define IDC_CHANGE 2009 #define IDC_BTITLE2 2009 #define IDC_USEWINCOLORS 2010 diff --git a/protocols/Weather/src/weather_opt.cpp b/protocols/Weather/src/weather_opt.cpp index 7e5f1ff1bf..18a03ffcf6 100644 --- a/protocols/Weather/src/weather_opt.cpp +++ b/protocols/Weather/src/weather_opt.cpp @@ -80,7 +80,6 @@ void CWeatherProto::LoadOptions(void) memset(&opt, 0, sizeof(opt)); // main options - opt.StartupUpdate = getByte("StartupUpdate", true); opt.AutoUpdate = getByte("AutoUpdate", true); opt.UpdateTime = getWord("UpdateTime", 30); opt.UpdateOnlyConditionChanged = getByte("CondChangeAsUpdate", true); @@ -134,7 +133,6 @@ void CWeatherProto::LoadOptions(void) void CWeatherProto::SaveOptions(void) { // main options - setByte("StartupUpdate", (uint8_t)opt.StartupUpdate); setByte("AutoUpdate", (uint8_t)opt.AutoUpdate); setWord("UpdateTime", opt.UpdateTime); setByte("CondChangeAsUpdate", (uint8_t)opt.UpdateOnlyConditionChanged); @@ -201,7 +199,6 @@ public: SendDlgItemMessage(m_hwnd, IDC_AVATARSPIN, UDM_SETPOS, 0, opt.AvatarSize); SendDlgItemMessage(m_hwnd, IDC_AVATARSIZE, EM_LIMITTEXT, 3, 0); - CheckDlgButton(m_hwnd, IDC_STARTUPUPD, opt.StartupUpdate ? BST_CHECKED : BST_UNCHECKED); CheckDlgButton(m_hwnd, IDC_UPDATE, opt.AutoUpdate ? BST_CHECKED : BST_UNCHECKED); CheckDlgButton(m_hwnd, IDC_UPDCONDCHG, opt.UpdateOnlyConditionChanged ? BST_CHECKED : BST_UNCHECKED); CheckDlgButton(m_hwnd, IDC_REMOVEOLD, opt.RemoveOldData ? BST_CHECKED : BST_UNCHECKED); @@ -258,7 +255,6 @@ public: // other general options GetDlgItemText(m_hwnd, IDC_DEGREE, opt.DegreeSign, _countof(opt.DegreeSign)); - opt.StartupUpdate = IsDlgButtonChecked(m_hwnd, IDC_STARTUPUPD); opt.AutoUpdate = IsDlgButtonChecked(m_hwnd, IDC_UPDATE); opt.DisCondIcon = IsDlgButtonChecked(m_hwnd, IDC_DISCONDICON); opt.UpdateOnlyConditionChanged = (uint8_t)IsDlgButtonChecked(m_hwnd, IDC_UPDCONDCHG); -- cgit v1.2.3