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 1187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1198 */ | 1198 */ |
1199 toggleSaveStats: function(window) | 1199 toggleSaveStats: function(window) |
1200 { | 1200 { |
1201 if (Prefs.savestats) | 1201 if (Prefs.savestats) |
1202 { | 1202 { |
1203 if (!Utils.confirm(window, Utils.getString("clearStats_warning"))) | 1203 if (!Utils.confirm(window, Utils.getString("clearStats_warning"))) |
1204 return; | 1204 return; |
1205 | 1205 |
1206 FilterStorage.resetHitCounts(); | 1206 FilterStorage.resetHitCounts(); |
1207 Prefs.savestats = false; | 1207 Prefs.savestats = false; |
| 1208 Prefs.sendstats = false; |
1208 } | 1209 } |
1209 else | 1210 else |
1210 Prefs.savestats = true; | 1211 Prefs.savestats = true; |
1211 }, | 1212 }, |
1212 | 1213 |
1213 /** | 1214 /** |
1214 * Sets the current filter subscription in a single-subscription scenario, | 1215 * Sets the current filter subscription in a single-subscription scenario, |
1215 * all other subscriptions will be removed. | 1216 * all other subscriptions will be removed. |
1216 */ | 1217 */ |
1217 setSubscription: function(url, title) | 1218 setSubscription: function(url, title) |
(...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1963 ["abp-command-contribute", "command", UI.openContributePage.bind(UI)], | 1964 ["abp-command-contribute", "command", UI.openContributePage.bind(UI)], |
1964 ["abp-command-contribute-hide", "command", UI.hideContributeButton.bind(UI)] | 1965 ["abp-command-contribute-hide", "command", UI.hideContributeButton.bind(UI)] |
1965 ]; | 1966 ]; |
1966 | 1967 |
1967 onShutdown.add(function() | 1968 onShutdown.add(function() |
1968 { | 1969 { |
1969 for (let window in UI.applicationWindows) | 1970 for (let window in UI.applicationWindows) |
1970 if (UI.isBottombarOpen(window)) | 1971 if (UI.isBottombarOpen(window)) |
1971 UI.toggleBottombar(window); | 1972 UI.toggleBottombar(window); |
1972 }); | 1973 }); |
OLD | NEW |