OLD | NEW |
1 /* | 1 /* |
2 * This file is part of Adblock Plus <https://adblockplus.org/>, | 2 * This file is part of Adblock Plus <https://adblockplus.org/>, |
3 * Copyright (C) 2006-2015 Eyeo GmbH | 3 * Copyright (C) 2006-2015 Eyeo GmbH |
4 * | 4 * |
5 * Adblock Plus is free software: you can redistribute it and/or modify | 5 * Adblock Plus is free software: you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 3 as | 6 * it under the terms of the GNU General Public License version 3 as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
8 * | 8 * |
9 * Adblock Plus is distributed in the hope that it will be useful, | 9 * Adblock Plus is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
908 | 908 |
909 HDC hdc = GetWindowDC(m_hStatusBarWnd); | 909 HDC hdc = GetWindowDC(m_hStatusBarWnd); |
910 SendMessage(m_hStatusBarWnd, WM_PAINT, (WPARAM)hdc, 0); | 910 SendMessage(m_hStatusBarWnd, WM_PAINT, (WPARAM)hdc, 0); |
911 ReleaseDC(m_hStatusBarWnd, hdc); | 911 ReleaseDC(m_hStatusBarWnd, hdc); |
912 | 912 |
913 return true; | 913 return true; |
914 } | 914 } |
915 | 915 |
916 void CPluginClass::FirstRunThread() | 916 void CPluginClass::FirstRunThread() |
917 { | 917 { |
| 918 // Just return if the First Run Page should be suppressed |
| 919 if (CPluginClient::GetInstance()->GetPref(L"suppress_first_run_page", false)) |
| 920 return; |
| 921 |
918 CoInitialize(NULL); | 922 CoInitialize(NULL); |
919 VARIANT vFlags; | 923 VARIANT vFlags; |
920 vFlags.vt = VT_I4; | 924 vFlags.vt = VT_I4; |
921 vFlags.intVal = navOpenInNewTab; | 925 vFlags.intVal = navOpenInNewTab; |
922 | 926 |
923 CComBSTR navigatePath = CComBSTR(FirstRunPageFileUrl().c_str()); | 927 CComBSTR navigatePath = CComBSTR(FirstRunPageFileUrl().c_str()); |
924 | 928 |
925 HRESULT hr = GetAsyncBrowser()->Navigate(navigatePath, &vFlags, NULL, NULL, NU
LL); | 929 HRESULT hr = GetAsyncBrowser()->Navigate(navigatePath, &vFlags, NULL, NULL, NU
LL); |
926 if (FAILED(hr)) | 930 if (FAILED(hr)) |
927 { | 931 { |
(...skipping 800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1728 s_criticalSectionLocal.Unlock(); | 1732 s_criticalSectionLocal.Unlock(); |
1729 | 1733 |
1730 } | 1734 } |
1731 } | 1735 } |
1732 } | 1736 } |
1733 | 1737 |
1734 hTabWnd = ::GetWindow(hTabWnd, GW_HWNDNEXT); | 1738 hTabWnd = ::GetWindow(hTabWnd, GW_HWNDNEXT); |
1735 } | 1739 } |
1736 return hTabWnd; | 1740 return hTabWnd; |
1737 } | 1741 } |
OLD | NEW |