Index: lib/init.js |
=================================================================== |
--- a/lib/init.js |
+++ b/lib/init.js |
@@ -20,13 +20,14 @@ |
let prefsInitDone = false; |
let filtersInitDone = false; |
+let isFirstRun = false; |
function checkInitialized() |
{ |
if (prefsInitDone && filtersInitDone) |
{ |
checkInitialized = function() {}; |
- _triggerEvent("init"); |
+ _triggerEvent("init", isFirstRun); |
} |
} |
@@ -45,6 +46,9 @@ |
{ |
// No data, must be a new user or someone with corrupted data - initialize |
// with default settings |
+ |
+ isFirstRun = true; |
+ |
let {Subscription, DownloadableSubscription} = require("subscriptionClasses"); |
let {Synchronizer} = require("synchronizer"); |
let {Prefs} = require("prefs"); |