MCPcopy Create free account
hub / github.com/efogdev/mpris-timer / SetSoundFilename

Function SetSoundFilename

internal/core/prefs.go:181–190  ·  view source on GitHub ↗
(value string)

Source from the content-addressed store, hash-verified

179}
180
181func SetSoundFilename(value string) {
182 Overrides.SoundFilename = value
183 UserPrefs.SoundFilename = value
184 settings.SetString("sound-filename", value)
185
186 err := LoadSound()
187 if err != nil {
188 SetSoundFilename("")
189 }
190}
191
192func SetDefaultText(value string) {
193 Overrides.Text = value

Callers 1

populateTimerGroupFunction · 0.92

Calls 1

LoadSoundFunction · 0.85

Tested by

no test coverage detected