Fix #745: add option to prevent screensaver on Now Playing page

This commit is contained in:
Drew Weymouth
2025-11-10 08:12:46 -08:00
parent 828b5ffc56
commit 8b73765a7d
5 changed files with 51 additions and 24 deletions
+26 -23
View File
@@ -61,6 +61,8 @@ type AppConfig struct {
SidebarWidthFraction float64
SidebarTab string
PreventScreensaverOnNowPlayingPage bool
FontNormalTTF string
FontBoldTTF string
UIScaleSize string
@@ -189,29 +191,30 @@ var SupportedStartupPages = []string{"Albums", "Favorites", "Playlists", "Artist
func DefaultConfig(appVersionTag string) *Config {
return &Config{
Application: AppConfig{
WindowWidth: 1000,
WindowHeight: 800,
LastCheckedVersion: appVersionTag,
LastLaunchedVersion: "",
EnableSystemTray: true,
CloseToSystemTray: false,
StartupPage: "Albums",
SettingsTab: "General",
AllowMultiInstance: false,
MaxImageCacheSizeMB: 50,
UIScaleSize: "Normal",
SavePlayQueue: true,
SaveQueueToServer: false,
ShowTrackChangeNotification: false,
EnableLrcLib: true,
EnablePasswordStorage: true,
SkipSSLVerify: false,
EnqueueBatchSize: 100,
Language: "auto",
EnableAutoUpdateChecker: true,
RequestTimeoutSeconds: 15,
EnableOSMediaPlayerAPIs: true,
SidebarWidthFraction: 0.8,
WindowWidth: 1000,
WindowHeight: 800,
LastCheckedVersion: appVersionTag,
LastLaunchedVersion: "",
EnableSystemTray: true,
CloseToSystemTray: false,
StartupPage: "Albums",
SettingsTab: "General",
AllowMultiInstance: false,
MaxImageCacheSizeMB: 50,
UIScaleSize: "Normal",
SavePlayQueue: true,
SaveQueueToServer: false,
ShowTrackChangeNotification: false,
EnableLrcLib: true,
EnablePasswordStorage: true,
SkipSSLVerify: false,
EnqueueBatchSize: 100,
Language: "auto",
EnableAutoUpdateChecker: true,
RequestTimeoutSeconds: 15,
EnableOSMediaPlayerAPIs: true,
SidebarWidthFraction: 0.8,
PreventScreensaverOnNowPlayingPage: false,
},
AlbumPage: AlbumPageConfig{
TracklistColumns: []string{"Artist", "Time", "Plays", "Favorite", "Rating"},