break: rename ClientCommand.PomodoroSettings
-> .Settings
This commit is contained in:
parent
61b2f71bf3
commit
16bc946a30
2 changed files with 6 additions and 6 deletions
|
@ -49,9 +49,9 @@ func handleClientCommands(ws *websocket.Conn) {
|
||||||
}
|
}
|
||||||
case "updateSettings":
|
case "updateSettings":
|
||||||
if !pomodoro.IsPomodoroOngoing() {
|
if !pomodoro.IsPomodoroOngoing() {
|
||||||
if clientCommand.PomodoroSettings != (models.GoTomatoPomodoroConfig{}) {
|
if clientCommand.Settings != (models.GoTomatoPomodoroConfig{}) {
|
||||||
shared.Message.Settings = clientCommand.PomodoroSettings
|
shared.Message.Settings = clientCommand.Settings
|
||||||
shared.Message.TimeLeft = clientCommand.PomodoroSettings.Work
|
shared.Message.TimeLeft = clientCommand.Settings.Work
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@ import (
|
||||||
type ClientCommand struct {
|
type ClientCommand struct {
|
||||||
Command string `json:"command"` // comman send to the server
|
Command string `json:"command"` // comman send to the server
|
||||||
Password string `json:"password"` // pomodoro control password
|
Password string `json:"password"` // pomodoro control password
|
||||||
PomodoroSettings GoTomatoPomodoroConfig `json:"settings"` // pomodoro config
|
Settings GoTomatoPomodoroConfig `json:"settings"` // pomodoro config
|
||||||
}
|
}
|
||||||
|
|
||||||
type Client struct {
|
type Client struct {
|
||||||
|
|
Loading…
Reference in a new issue