summaryrefslogtreecommitdiff
path: root/protocols/Weather/src
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Weather/src')
-rw-r--r--protocols/Weather/src/proto.h1
-rw-r--r--protocols/Weather/src/resource.h1
-rw-r--r--protocols/Weather/src/weather_opt.cpp4
3 files changed, 0 insertions, 6 deletions
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);