Fix header autohide state when turning off 'Auto-hide header on scroll' with 'Auto-hide header' on.

This commit is contained in:
ccd0 2016-09-10 18:57:15 -07:00
parent 597ce02c50
commit 394812b2df

View File

@ -360,7 +360,7 @@ Header =
return
$.off window, 'scroll', Header.hideBarOnScroll
$.rmClass Header.bar, 'scroll'
$.rmClass Header.bar, 'autohide' unless Conf['Header auto-hide']
Header.bar.classList.toggle 'autohide', Conf['Header auto-hide']
toggleHideBarOnScroll: ->
hide = @checked