summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protocols/Weather/res/resource.rc2
-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
4 files changed, 0 insertions, 8 deletions
diff --git a/protocols/Weather/res/resource.rc b/protocols/Weather/res/resource.rc
index ba639a55fc..353fd9ace3 100644
--- a/protocols/Weather/res/resource.rc
+++ b/protocols/Weather/res/resource.rc
@@ -44,8 +44,6 @@ EXSTYLE WS_EX_CONTROLPARENT
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
GROUPBOX "Options",IDC_STATIC,3,0,299,70,WS_GROUP
- CONTROL "Update weather information on startup",IDC_STARTUPUPD,
- "Button",BS_AUTOCHECKBOX | WS_TABSTOP,8,12,286,8
CONTROL "Update weather information every",IDC_UPDATE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,8,23,206,8
EDITTEXT IDC_UPDATETIME,223,21,33,12,ES_AUTOHSCROLL | ES_NUMBER | NOT WS_BORDER,WS_EX_CLIENTEDGE | WS_EX_STATICEDGE
LTEXT "minutes",IDC_STATIC,260,23,39,8
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);