From 97f80dd9e5737bb65cdd2b745c864e9c3b7ab433 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 16 Jan 2021 16:39:56 +0300 Subject: glory, glory, halleluya: perversive manual call of OnChange() event inside OnInitDialog isn't needed anymore --- plugins/Scriver/src/msgoptions.cpp | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) (limited to 'plugins/Scriver/src/msgoptions.cpp') diff --git a/plugins/Scriver/src/msgoptions.cpp b/plugins/Scriver/src/msgoptions.cpp index b056b8bf27..6193b1a9d0 100644 --- a/plugins/Scriver/src/msgoptions.cpp +++ b/plugins/Scriver/src/msgoptions.cpp @@ -286,8 +286,6 @@ public: cmbSendMode.AddString(TranslateT("Ctrl+Enter")); cmbSendMode.AddString(TranslateT("Shift+Enter")); cmbSendMode.SetCurSel(g_dat.sendMode); - - onChange_AutoPopup(0); return true; } @@ -361,13 +359,7 @@ public: chkLimitChatTabs.OnChange = Callback(this, &CTabsOptionsDlg::onChange_LimitChatTabs); chkSeparateChats.OnChange = Callback(this, &CTabsOptionsDlg::onChange_SeparateChats); } - - bool OnInitDialog() override - { - onChange_UseTabs(0); - return true; - } - + void onChange_UseTabs(CCtrlCheck*) { int bChecked = chkUseTabs.GetState(); @@ -462,9 +454,6 @@ public: mir_snprintf(str, "%d%%", (int)(100 * SendDlgItemMessage(m_hwnd, IDC_ITRANSPARENCYVALUE, TBM_GETPOS, 0, 0) / 255)); SetDlgItemTextA(m_hwnd, IDC_ITRANSPARENCYPERC, str); - - onChange_Transparency(0); - onChange_ShowTitlebar(0); return true; } @@ -616,12 +605,6 @@ public: break; } - onChange_Time(0); - onChange_Times(0); - onChange_Dates(0); - onChange_GroupMsg(0); - onChange_IndentText(0); - PARAFORMAT2 pf2; memset(&pf2, 0, sizeof(pf2)); pf2.cbSize = sizeof(pf2); @@ -746,9 +729,6 @@ public: onResetClist(0); chkTypingBalloon.SetState(!g_plugin.bShowTypingClist); - - onChange_Notify(0); - onChange_Tray(0); return true; } -- cgit v1.2.3