mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
[Feature] Added slideshow to gallery in wall display mode (#1224)
This commit is contained in:
@@ -118,6 +118,7 @@ const AutostartVideo = "autostart_video"
|
||||
const ShowStudioAsText = "show_studio_as_text"
|
||||
const CSSEnabled = "cssEnabled"
|
||||
const WallPlayback = "wall_playback"
|
||||
const SlideshowDelay = "slideshow_delay"
|
||||
|
||||
// Logging options
|
||||
const LogFile = "logFile"
|
||||
@@ -560,6 +561,11 @@ func (i *Instance) GetShowStudioAsText() bool {
|
||||
return viper.GetBool(ShowStudioAsText)
|
||||
}
|
||||
|
||||
func (i *Instance) GetSlideshowDelay() int {
|
||||
viper.SetDefault(SlideshowDelay, 5000)
|
||||
return viper.GetInt(SlideshowDelay)
|
||||
}
|
||||
|
||||
func (i *Instance) GetCSSPath() string {
|
||||
// use custom.css in the same directory as the config file
|
||||
configFileUsed := viper.ConfigFileUsed()
|
||||
|
||||
Reference in New Issue
Block a user