提交 215e127a 编写于 作者: aaronchen2k2k's avatar aaronchen2k2k

fix a bug for launch cui

上级 0c5b5ba2
......@@ -165,14 +165,17 @@ func reportBug(g *gocui.Gui, v *gocui.View) error {
msgView, _ := vari.Cui.View("reportBugMsg")
msgView.Clear()
color.New(color.FgMagenta).Fprintf(msgView, msg)
if ok {
color.New(color.FgGreen).Fprintf(msgView, msg)
vari.Cui.DeleteView("submitInput")
cancelReportBugInput, _ := vari.Cui.View("cancelReportBugInput")
cancelReportBugInput.Clear()
fmt.Fprint(cancelReportBugInput, " "+i118Utils.I118Prt.Sprintf("close"))
} else {
color.New(color.FgMagenta).Fprintf(msgView, msg)
}
return nil
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册