break: rename GoTomatoPomodoroConfig
-> PomodoroConfig
This commit is contained in:
parent
0180aea8c1
commit
c20d36d2d2
5 changed files with 13 additions and 13 deletions
internal
|
@ -9,7 +9,7 @@ var DefaultServerConfig = models.GoTomatoServerConfig{
|
|||
ListenPort: 8080,
|
||||
}
|
||||
|
||||
var DefaultPomodoroConfig = models.GoTomatoPomodoroConfig{
|
||||
var DefaultPomodoroConfig = models.PomodoroConfig{
|
||||
Work: 25 * 60,
|
||||
ShortBreak: 5 * 60,
|
||||
LongBreak: 15 * 60,
|
||||
|
|
|
@ -49,7 +49,7 @@ func handleClientCommands(ws *websocket.Conn) {
|
|||
}
|
||||
case "updateSettings":
|
||||
if !pomodoro.IsPomodoroOngoing() {
|
||||
if clientCommand.Settings != (models.GoTomatoPomodoroConfig{}) {
|
||||
if clientCommand.Settings != (models.PomodoroConfig{}) {
|
||||
shared.Message.Settings = clientCommand.Settings
|
||||
shared.Message.TimeLeft = clientCommand.Settings.Work
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue