This commit is contained in:
parent
593d9241be
commit
a7b9baaaaf
|
@ -107,7 +107,7 @@ func NewUser(id, name, avatar, workspace string) *User {
|
||||||
|
|
||||||
return &User{Id: id, Name: name, Avatar: avatar, Workspace: workspace,
|
return &User{Id: id, Name: name, Avatar: avatar, Workspace: workspace,
|
||||||
Locale: Wide.Locale, GoFormat: "gofmt",
|
Locale: Wide.Locale, GoFormat: "gofmt",
|
||||||
GoBuildArgsForLinux: "-i", GoBuildArgsForWindows: "-i", GoBuildArgsForDarwin: "-i",
|
GoBuildArgsForLinux: "", GoBuildArgsForWindows: "", GoBuildArgsForDarwin: "",
|
||||||
FontFamily: "Helvetica", FontSize: "13px", Theme: "default",
|
FontFamily: "Helvetica", FontSize: "13px", Theme: "default",
|
||||||
Keymap: "wide",
|
Keymap: "wide",
|
||||||
Created: now, Updated: now, Lived: now,
|
Created: now, Updated: now, Lived: now,
|
||||||
|
|
18
conf/wide.go
18
conf/wide.go
|
@ -142,15 +142,15 @@ func initUsers() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Compatibility upgrade (1.5.3): https://github.com/b3log/wide/issues/308
|
// Compatibility upgrade (1.5.3): https://github.com/b3log/wide/issues/308
|
||||||
if "" == user.GoBuildArgsForLinux {
|
//if "" == user.GoBuildArgsForLinux {
|
||||||
user.GoBuildArgsForLinux = "-i"
|
// user.GoBuildArgsForLinux = "-i"
|
||||||
}
|
//}
|
||||||
if "" == user.GoBuildArgsForWindows {
|
//if "" == user.GoBuildArgsForWindows {
|
||||||
user.GoBuildArgsForWindows = "-i"
|
// user.GoBuildArgsForWindows = "-i"
|
||||||
}
|
//}
|
||||||
if "" == user.GoBuildArgsForDarwin {
|
//if "" == user.GoBuildArgsForDarwin {
|
||||||
user.GoBuildArgsForDarwin = "-i"
|
// user.GoBuildArgsForDarwin = "-i"
|
||||||
}
|
//}
|
||||||
|
|
||||||
Users = append(Users, user)
|
Users = append(Users, user)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue