| Left: | ||
| Right: |
| 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 1169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1180 */ | 1180 */ |
| 1181 toggleSaveStats: function(window) | 1181 toggleSaveStats: function(window) |
| 1182 { | 1182 { |
| 1183 if (Prefs.savestats) | 1183 if (Prefs.savestats) |
| 1184 { | 1184 { |
| 1185 if (!Utils.confirm(window, Utils.getString("clearStats_warning"))) | 1185 if (!Utils.confirm(window, Utils.getString("clearStats_warning"))) |
| 1186 return; | 1186 return; |
| 1187 | 1187 |
| 1188 FilterStorage.resetHitCounts(); | 1188 FilterStorage.resetHitCounts(); |
| 1189 Prefs.savestats = false; | 1189 Prefs.savestats = false; |
| 1190 Prefs.sendstats = false; | |
|
Wladimir Palant
2016/02/15 12:25:41
To reinforce my point from before: currently this
saroyanm
2016/02/19 17:38:12
Done.
| |
| 1190 } | 1191 } |
| 1191 else | 1192 else |
| 1192 Prefs.savestats = true; | 1193 Prefs.savestats = true; |
| 1193 }, | 1194 }, |
| 1194 | 1195 |
| 1195 /** | 1196 /** |
| 1196 * Sets the current filter subscription in a single-subscription scenario, | 1197 * Sets the current filter subscription in a single-subscription scenario, |
| 1197 * all other subscriptions will be removed. | 1198 * all other subscriptions will be removed. |
| 1198 */ | 1199 */ |
| 1199 setSubscription: function(url, title) | 1200 setSubscription: function(url, title) |
| (...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1896 ["abp-command-contribute-hide", "command", UI.hideContributeButton.bind(UI)], | 1897 ["abp-command-contribute-hide", "command", UI.hideContributeButton.bind(UI)], |
| 1897 ["abp-command-toggleshownotifications", "command", Notification.toggleIgnoreCa tegory.bind(Notification, "*", null)] | 1898 ["abp-command-toggleshownotifications", "command", Notification.toggleIgnoreCa tegory.bind(Notification, "*", null)] |
| 1898 ]; | 1899 ]; |
| 1899 | 1900 |
| 1900 onShutdown.add(function() | 1901 onShutdown.add(function() |
| 1901 { | 1902 { |
| 1902 for (let window of UI.applicationWindows) | 1903 for (let window of UI.applicationWindows) |
| 1903 if (UI.isBottombarOpen(window)) | 1904 if (UI.isBottombarOpen(window)) |
| 1904 UI.toggleBottombar(window); | 1905 UI.toggleBottombar(window); |
| 1905 }); | 1906 }); |
| OLD | NEW |