break: rename ServerMessage.PomodoroSettings -> .Settings

This commit is contained in:
Sebastian Mark 2024-10-26 09:15:49 +02:00
parent 06633ff438
commit 61b2f71bf3
4 changed files with 16 additions and 16 deletions

View file

@ -50,7 +50,7 @@ func handleClientCommands(ws *websocket.Conn) {
case "updateSettings":
if !pomodoro.IsPomodoroOngoing() {
if clientCommand.PomodoroSettings != (models.GoTomatoPomodoroConfig{}) {
shared.Message.PomodoroSettings = clientCommand.PomodoroSettings
shared.Message.Settings = clientCommand.PomodoroSettings
shared.Message.TimeLeft = clientCommand.PomodoroSettings.Work
}