diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/settings.coffee | 1 | ||||
| -rw-r--r-- | lib/utils.coffee | 9 |
2 files changed, 6 insertions, 4 deletions
diff --git a/lib/settings.coffee b/lib/settings.coffee index 437e4d45..99a20963 100644 --- a/lib/settings.coffee +++ b/lib/settings.coffee @@ -163,6 +163,7 @@ Settings = settingsVersion: Utils.getCurrentVersion() helpDialog_showAdvancedCommands: false + optionsPage_showAdvancedOptions: false Settings.init() diff --git a/lib/utils.coffee b/lib/utils.coffee index 93045f32..d4beff03 100644 --- a/lib/utils.coffee +++ b/lib/utils.coffee @@ -323,10 +323,11 @@ class SimpleCache null rotate: (force = false) -> - if force or @entries < Object.keys(@cache).length or @expiry < new Date() - @lastRotation - @lastRotation = new Date() - @previous = @cache - @cache = {} + Utils.nextTick => + if force or @entries < Object.keys(@cache).length or @expiry < new Date() - @lastRotation + @lastRotation = new Date() + @previous = @cache + @cache = {} clear: -> @rotate true |
