Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: lib/ui.js

Issue 6331143469137920: Issue 206 - Add a pref for suppressing the first run page (Closed)
Patch Set: Created March 19, 2015, 6:06 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « defaults/prefs.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 817 matching lines...) Expand 10 before | Expand all | Expand 10 after
828 if (subscription instanceof DownloadableSubscription && !subscription.la stDownload) 828 if (subscription instanceof DownloadableSubscription && !subscription.la stDownload)
829 Synchronizer.execute(subscription); 829 Synchronizer.execute(subscription);
830 } 830 }
831 } 831 }
832 832
833 if (!addSubscription && !addAcceptable) 833 if (!addSubscription && !addAcceptable)
834 return; 834 return;
835 835
836 function notifyUser() 836 function notifyUser()
837 { 837 {
838 if (Prefs.suppress_first_run_page)
839 return;
840
838 let {addTab} = require("appSupport"); 841 let {addTab} = require("appSupport");
839 if (addTab) 842 if (addTab)
840 { 843 {
841 addTab(window, "chrome://adblockplus/content/ui/firstRun.html"); 844 addTab(window, "chrome://adblockplus/content/ui/firstRun.html");
842 } 845 }
843 else 846 else
844 { 847 {
845 let dialogSource = '\ 848 let dialogSource = '\
846 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>\ 849 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>\
847 <dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.on ly.xul" onload="document.title=content.document.title" buttons="accept" width="5 00" height="600">\ 850 <dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.on ly.xul" onload="document.title=content.document.title" buttons="accept" width="5 00" height="600">\
(...skipping 1106 matching lines...) Expand 10 before | Expand all | Expand 10 after
1954 ["abp-command-contribute", "command", UI.openContributePage.bind(UI)], 1957 ["abp-command-contribute", "command", UI.openContributePage.bind(UI)],
1955 ["abp-command-contribute-hide", "command", UI.hideContributeButton.bind(UI)] 1958 ["abp-command-contribute-hide", "command", UI.hideContributeButton.bind(UI)]
1956 ]; 1959 ];
1957 1960
1958 onShutdown.add(function() 1961 onShutdown.add(function()
1959 { 1962 {
1960 for (let window in UI.applicationWindows) 1963 for (let window in UI.applicationWindows)
1961 if (UI.isBottombarOpen(window)) 1964 if (UI.isBottombarOpen(window))
1962 UI.toggleBottombar(window); 1965 UI.toggleBottombar(window);
1963 }); 1966 });
OLDNEW
« no previous file with comments | « defaults/prefs.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld