summaryrefslogtreecommitdiff
path: root/plugins/SmileyAdd/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-08-14 17:50:10 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-08-14 17:50:10 +0300
commit92dee4809d57f97421578a4421e7d9745c369f9a (patch)
tree1953e380dde3dd8254ca00e66585fb18c8a38207 /plugins/SmileyAdd/src
parent70c7eb36da13424bf1bfabb56977562fee7241de (diff)
fixes #2526 (SmileyAdd: remove "Disable stickers" option)
Diffstat (limited to 'plugins/SmileyAdd/src')
-rw-r--r--plugins/SmileyAdd/src/options.cpp4
-rw-r--r--plugins/SmileyAdd/src/options.h1
-rw-r--r--plugins/SmileyAdd/src/resource.h2
-rw-r--r--plugins/SmileyAdd/src/services.cpp4
4 files changed, 1 insertions, 10 deletions
diff --git a/plugins/SmileyAdd/src/options.cpp b/plugins/SmileyAdd/src/options.cpp
index f8c6183803..20ec3f99be 100644
--- a/plugins/SmileyAdd/src/options.cpp
+++ b/plugins/SmileyAdd/src/options.cpp
@@ -37,7 +37,6 @@ void OptionsType::Save(void)
g_plugin.setByte("AnimateDlg", AnimateDlg);
g_plugin.setByte("InputSmileys", InputSmileys);
g_plugin.setByte("DCursorSmiley", DCursorSmiley);
- g_plugin.setByte("DisableCustom", DisableCustom);
g_plugin.setByte("HQScaling", HQScaling);
g_plugin.setDword("MaxCustomSmileySize", MaxCustomSmileySize);
g_plugin.setDword("MinSmileySize", MinSmileySize);
@@ -57,7 +56,6 @@ void OptionsType::Load(void)
AnimateDlg = g_plugin.getByte("AnimateDlg", TRUE) != 0;
InputSmileys = g_plugin.getByte("InputSmileys", TRUE) != 0;
DCursorSmiley = g_plugin.getByte("DCursorSmiley", FALSE) != 0;
- DisableCustom = g_plugin.getByte("DisableCustom", FALSE) != 0;
HQScaling = g_plugin.getByte("HQScaling", FALSE) != 0;
SelWndBkgClr = g_plugin.getDword("SelWndBkgClr", GetSysColor(COLOR_WINDOW));
@@ -318,7 +316,6 @@ public:
CheckDlgButton(m_hwnd, IDC_ANIMATEDLG, opt.AnimateDlg ? BST_CHECKED : BST_UNCHECKED);
CheckDlgButton(m_hwnd, IDC_INPUTSMILEYS, opt.InputSmileys ? BST_CHECKED : BST_UNCHECKED);
CheckDlgButton(m_hwnd, IDC_DCURSORSMILEY, opt.DCursorSmiley ? BST_CHECKED : BST_UNCHECKED);
- CheckDlgButton(m_hwnd, IDC_DISABLECUSTOM, opt.DisableCustom ? BST_CHECKED : BST_UNCHECKED);
CheckDlgButton(m_hwnd, IDC_HQSCALING, opt.HQScaling ? BST_CHECKED : BST_UNCHECKED);
CheckDlgButton(m_hwnd, IDC_SORTING_HORIZONTAL, opt.HorizontalSorting ? BST_CHECKED : BST_UNCHECKED);
@@ -382,7 +379,6 @@ public:
opt.AnimateDlg = IsDlgButtonChecked(m_hwnd, IDC_ANIMATEDLG) == BST_CHECKED;
opt.InputSmileys = IsDlgButtonChecked(m_hwnd, IDC_INPUTSMILEYS) == BST_CHECKED;
opt.DCursorSmiley = IsDlgButtonChecked(m_hwnd, IDC_DCURSORSMILEY) == BST_CHECKED;
- opt.DisableCustom = IsDlgButtonChecked(m_hwnd, IDC_DISABLECUSTOM) == BST_CHECKED;
opt.HQScaling = IsDlgButtonChecked(m_hwnd, IDC_HQSCALING) == BST_CHECKED;
opt.HorizontalSorting = IsDlgButtonChecked(m_hwnd, IDC_SORTING_HORIZONTAL) == BST_CHECKED;
diff --git a/plugins/SmileyAdd/src/options.h b/plugins/SmileyAdd/src/options.h
index 25704cf7b1..a080d317c6 100644
--- a/plugins/SmileyAdd/src/options.h
+++ b/plugins/SmileyAdd/src/options.h
@@ -37,7 +37,6 @@ public:
bool AnimateDlg;
bool InputSmileys;
bool DCursorSmiley;
- bool DisableCustom;
bool HQScaling;
bool HorizontalSorting;
unsigned SelWndBkgClr;
diff --git a/plugins/SmileyAdd/src/resource.h b/plugins/SmileyAdd/src/resource.h
index 85958c8f8b..f3b1188d87 100644
--- a/plugins/SmileyAdd/src/resource.h
+++ b/plugins/SmileyAdd/src/resource.h
@@ -20,8 +20,6 @@
#define IDC_USESTDPACK 1049
#define IDC_USEPHYSPROTO 1050
#define IDC_ANIMATEDLG 1051
-#define IDC_DISABLECUSTOM 1052
-#define IDC_DISABLECUSTOM2 1053
#define IDC_HQSCALING 1053
#define IDC_NEWCATEGORY 1058
#define IDC_ADDCATEGORY 1059
diff --git a/plugins/SmileyAdd/src/services.cpp b/plugins/SmileyAdd/src/services.cpp
index 8437604db8..bf3cbf472a 100644
--- a/plugins/SmileyAdd/src/services.cpp
+++ b/plugins/SmileyAdd/src/services.cpp
@@ -28,7 +28,7 @@ SmileyPackType* GetSmileyPack(const char *proto, MCONTACT hContact, SmileyPackCT
{
hContact = DecodeMetaContact(hContact);
if (smlc)
- *smlc = opt.DisableCustom ? nullptr : g_SmileyPackCStore.GetSmileyPack(hContact);
+ *smlc = g_SmileyPackCStore.GetSmileyPack(hContact);
if (proto != nullptr && IsBadStringPtrA(proto, 10))
return nullptr;
@@ -357,8 +357,6 @@ INT_PTR ReloadPack(WPARAM, LPARAM lParam)
INT_PTR LoadContactSmileys(WPARAM, LPARAM lParam)
{
- if (opt.DisableCustom) return 0;
-
SMADD_CONT *cont = (SMADD_CONT*)lParam;
switch (cont->type) {