|
|
@ -17,6 +17,7 @@ class app.views.SettingsPage extends app.View
|
|
|
|
settings.autoInstall = app.settings.get('autoInstall')
|
|
|
|
settings.autoInstall = app.settings.get('autoInstall')
|
|
|
|
settings.analyticsConsent = app.settings.get('analyticsConsent')
|
|
|
|
settings.analyticsConsent = app.settings.get('analyticsConsent')
|
|
|
|
settings.spaceScroll = app.settings.get('spaceScroll')
|
|
|
|
settings.spaceScroll = app.settings.get('spaceScroll')
|
|
|
|
|
|
|
|
settings.spaceTimeout = app.settings.get('spaceTimeout')
|
|
|
|
settings.autoSupported = app.settings.autoSupported
|
|
|
|
settings.autoSupported = app.settings.autoSupported
|
|
|
|
settings[layout] = app.settings.hasLayout(layout) for layout in app.settings.LAYOUTS
|
|
|
|
settings[layout] = app.settings.hasLayout(layout) for layout in app.settings.LAYOUTS
|
|
|
|
settings
|
|
|
|
settings
|
|
|
@ -45,6 +46,9 @@ class app.views.SettingsPage extends app.View
|
|
|
|
app.settings.set('spaceScroll', if enable then 1 else 0)
|
|
|
|
app.settings.set('spaceScroll', if enable then 1 else 0)
|
|
|
|
return
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setScrollTimeout: (value) ->
|
|
|
|
|
|
|
|
app.settings.set('spaceTimeout', value)
|
|
|
|
|
|
|
|
|
|
|
|
toggle: (name, enable) ->
|
|
|
|
toggle: (name, enable) ->
|
|
|
|
app.settings.set(name, enable)
|
|
|
|
app.settings.set(name, enable)
|
|
|
|
return
|
|
|
|
return
|
|
|
@ -92,6 +96,8 @@ class app.views.SettingsPage extends app.View
|
|
|
|
@toggleAnalyticsConsent input.checked
|
|
|
|
@toggleAnalyticsConsent input.checked
|
|
|
|
when 'spaceScroll'
|
|
|
|
when 'spaceScroll'
|
|
|
|
@toggleSpaceScroll input.checked
|
|
|
|
@toggleSpaceScroll input.checked
|
|
|
|
|
|
|
|
when 'spaceTimeout'
|
|
|
|
|
|
|
|
@setScrollTimeout input.value
|
|
|
|
else
|
|
|
|
else
|
|
|
|
@toggle input.name, input.checked
|
|
|
|
@toggle input.name, input.checked
|
|
|
|
return
|
|
|
|
return
|
|
|
|