Loop and autostart flags. Save interface options (#230)

This commit is contained in:
WithoutPants
2019-11-29 12:41:17 +11:00
committed by Leopere
parent bcd3cefcc9
commit 8493c013e7
10 changed files with 179 additions and 47 deletions

View File

@@ -49,10 +49,19 @@ func makeConfigGeneralResult() *models.ConfigGeneralResult {
}
func makeConfigInterfaceResult() *models.ConfigInterfaceResult {
soundOnPreview := config.GetSoundOnPreview()
wallShowTitle := config.GetWallShowTitle()
maximumLoopDuration := config.GetMaximumLoopDuration()
autostartVideo := config.GetAutostartVideo()
css := config.GetCSS()
cssEnabled := config.GetCSSEnabled()
return &models.ConfigInterfaceResult{
CSS: &css,
CSSEnabled: &cssEnabled,
SoundOnPreview: &soundOnPreview,
WallShowTitle: &wallShowTitle,
MaximumLoopDuration: &maximumLoopDuration,
AutostartVideo: &autostartVideo,
CSS: &css,
CSSEnabled: &cssEnabled,
}
}