| 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 1165 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1176    */ |  1176    */ | 
|  1177   toggleSaveStats: function(window) |  1177   toggleSaveStats: function(window) | 
|  1178   { |  1178   { | 
|  1179     if (Prefs.savestats) |  1179     if (Prefs.savestats) | 
|  1180     { |  1180     { | 
|  1181       if (!Utils.confirm(window, Utils.getString("clearStats_warning"))) |  1181       if (!Utils.confirm(window, Utils.getString("clearStats_warning"))) | 
|  1182         return; |  1182         return; | 
|  1183  |  1183  | 
|  1184       FilterStorage.resetHitCounts(); |  1184       FilterStorage.resetHitCounts(); | 
|  1185       Prefs.savestats = false; |  1185       Prefs.savestats = false; | 
 |  1186       Prefs.sendstats = false; | 
|  1186     } |  1187     } | 
|  1187     else |  1188     else | 
|  1188       Prefs.savestats = true; |  1189       Prefs.savestats = true; | 
|  1189   }, |  1190   }, | 
|  1190  |  1191  | 
|  1191   /** |  1192   /** | 
|  1192    * Sets the current filter subscription in a single-subscription scenario, |  1193    * Sets the current filter subscription in a single-subscription scenario, | 
|  1193    * all other subscriptions will be removed. |  1194    * all other subscriptions will be removed. | 
|  1194    */ |  1195    */ | 
|  1195   setSubscription: function(url, title) |  1196   setSubscription: function(url, title) | 
| (...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1928   ["abp-command-contribute-hide", "command", UI.hideContributeButton.bind(UI)], |  1929   ["abp-command-contribute-hide", "command", UI.hideContributeButton.bind(UI)], | 
|  1929   ["abp-command-toggleshownotifications", "command", Notification.toggleIgnoreCa
      tegory.bind(Notification, "*", null)] |  1930   ["abp-command-toggleshownotifications", "command", Notification.toggleIgnoreCa
      tegory.bind(Notification, "*", null)] | 
|  1930 ]; |  1931 ]; | 
|  1931  |  1932  | 
|  1932 onShutdown.add(function() |  1933 onShutdown.add(function() | 
|  1933 { |  1934 { | 
|  1934   for (let window of UI.applicationWindows) |  1935   for (let window of UI.applicationWindows) | 
|  1935     if (UI.isBottombarOpen(window)) |  1936     if (UI.isBottombarOpen(window)) | 
|  1936       UI.toggleBottombar(window); |  1937       UI.toggleBottombar(window); | 
|  1937 }); |  1938 }); | 
| OLD | NEW |