Merge pull request #473 from isaak654/patch-1

Fix code alignment
This commit is contained in:
DavidXanatos 2021-01-30 22:35:48 +01:00 committed by GitHub
commit 30af393bec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 13 deletions

View File

@ -146,7 +146,7 @@ CAppPage::CAppPage(TMPL_INFO *info, const CString &BoxName)
if (m_tmpl_info.ClassModifier & MODIF_IEXPLORE)
m_titleForPage = L"Internet Explorer";
if (m_tmpl_info.ClassModifier & MODIF_EDGE)
if (m_tmpl_info.ClassModifier & MODIF_EDGE)
m_titleForPage = "Microsoft Edge";
if (m_tmpl_info.ClassModifier & MODIF_FIREFOX)
m_titleForPage = L"Firefox";
@ -247,8 +247,7 @@ void CAppPage::Access_OnInitDialog(CBox &box)
void CAppPage::Access_OnOK(CBox &box)
{
BOOL global = CBoxes::GetInstance().GetBox(0).
IsTemplateEnabled(Template_ScreenReader);
BOOL global = CBoxes::GetInstance().GetBox(0).IsTemplateEnabled(Template_ScreenReader);
BOOL wasEnabled = box.IsTemplateEnabled(Template_ScreenReader);
if (! wasEnabled)
@ -541,26 +540,26 @@ void CAppPage::Template_Filter()
POSITION old_pos = pos;
CString name = m_tmpl_sections.GetNext(pos);
BOOL ie = (name.Find(L"IExplore_") != -1);
BOOL edge = (name.Find(L"Edge_") != -1);
BOOL edge = (name.Find(L"Edge_") != -1);
BOOL ff = (name.Find(L"Firefox_") != -1)
|| (name.Find(L"Waterfox_") != -1)
|| (name.Find(L"PaleMoon_") != -1)
|| (name.Find(L"SeaMonkey_") != -1);
|| (name.Find(L"SeaMonkey_") != -1);
BOOL ch = (name.Find(L"Chrome_") != -1);
BOOL other = (name.Find(L"Dragon_") != -1)
|| (name.Find(L"Iron_") != -1)
|| (name.Find(L"Ungoogled_") != -1)
|| (name.Find(L"Vivaldi_") != -1)
BOOL other = (name.Find(L"Dragon_") != -1)
|| (name.Find(L"Iron_") != -1)
|| (name.Find(L"Ungoogled_") != -1)
|| (name.Find(L"Vivaldi_") != -1)
|| (name.Find(L"Brave_") != -1)
|| (name.Find(L"Maxthon_6_") != -1)
|| (name.Find(L"Opera_") != -1)
|| (name.Find(L"Yandex_") != -1);
|| (name.Find(L"Opera_") != -1)
|| (name.Find(L"Yandex_") != -1);
BOOL keep = FALSE;
if ((modif & MODIF_IEXPLORE) && ie)
keep = TRUE;
else if ((modif & MODIF_EDGE) && edge)
else if ((modif & MODIF_EDGE) && edge)
keep = TRUE;
else if ((modif & MODIF_FIREFOX) && ff)
keep = TRUE;
@ -1000,7 +999,7 @@ void CAppPage::AddPages(CPropertySheet &sheet, const CString &BoxName)
info.WithCreate = FALSE;
info.ClassModifier = MODIF_IEXPLORE; // IExplore
m_app_pages.AddTail(new CAppPage(&info, BoxName));
info.ClassModifier = MODIF_EDGE; // Microsoft Edge
info.ClassModifier = MODIF_EDGE; // Microsoft Edge
m_app_pages.AddTail(new CAppPage(&info, BoxName));
info.ClassModifier = MODIF_FIREFOX; // Firefox
m_app_pages.AddTail(new CAppPage(&info, BoxName));