From f580be3d9dcccb14831d6bed9e7dfca600f5b6f8 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 6 Mar 2019 16:15:45 +0300 Subject: popups: - internal implementation details & all service declarations moved to m_popup_int.h; - all service calls removed and replaced with function calls; - direct access to popup serttings replaced with Popup_Enable / Popup_Enabled; --- plugins/Toaster/src/options.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'plugins/Toaster/src/options.cpp') diff --git a/plugins/Toaster/src/options.cpp b/plugins/Toaster/src/options.cpp index 7c1e446042..be08b5cf16 100644 --- a/plugins/Toaster/src/options.cpp +++ b/plugins/Toaster/src/options.cpp @@ -13,7 +13,7 @@ COptions::COptions() bool COptions::OnInitDialog() { - m_enabled.SetState(CallService(MS_POPUP_QUERY, PUQS_GETSTATUS)); + m_enabled.SetState(Popup_Enabled()); return true; } @@ -34,10 +34,7 @@ void COptions::Preview_OnClick(CCtrlBase*) void COptions::Enabled_OnChange(CCtrlCheck* chk) { - if (chk->GetState()) - CallService(MS_POPUP_QUERY, PUQS_ENABLEPOPUPS); - else - CallService(MS_POPUP_QUERY, PUQS_DISABLEPOPUPS); + Popup_Enable(chk->GetState()); } ///////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3