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,
|
||||
Locale: Wide.Locale, GoFormat: "gofmt",
|
||||
GoBuildArgsForLinux: "-i", GoBuildArgsForWindows: "-i", GoBuildArgsForDarwin: "-i",
|
||||
GoBuildArgsForLinux: "", GoBuildArgsForWindows: "", GoBuildArgsForDarwin: "",
|
||||
FontFamily: "Helvetica", FontSize: "13px", Theme: "default",
|
||||
Keymap: "wide",
|
||||
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
|
||||
if "" == user.GoBuildArgsForLinux {
|
||||
user.GoBuildArgsForLinux = "-i"
|
||||
}
|
||||
if "" == user.GoBuildArgsForWindows {
|
||||
user.GoBuildArgsForWindows = "-i"
|
||||
}
|
||||
if "" == user.GoBuildArgsForDarwin {
|
||||
user.GoBuildArgsForDarwin = "-i"
|
||||
}
|
||||
//if "" == user.GoBuildArgsForLinux {
|
||||
// user.GoBuildArgsForLinux = "-i"
|
||||
//}
|
||||
//if "" == user.GoBuildArgsForWindows {
|
||||
// user.GoBuildArgsForWindows = "-i"
|
||||
//}
|
||||
//if "" == user.GoBuildArgsForDarwin {
|
||||
// user.GoBuildArgsForDarwin = "-i"
|
||||
//}
|
||||
|
||||
Users = append(Users, user)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue