diff --git a/src/ui/msgbox.tis b/src/ui/msgbox.tis index 070ec6588..b4ca1c490 100644 --- a/src/ui/msgbox.tis +++ b/src/ui/msgbox.tis @@ -91,8 +91,8 @@ class MsgboxComponent: Reactor.Component { var color = this.getColor(); var icon = this.getIcon(color); var content = this.getContent(); - var hasCancel = this.type.indexOf("error") < 0 && this.type != "success" && this.type.indexOf("nocancel") < 0; - var hasOk = this.type != "connecting" && this.type.indexOf("nook") < 0; + var hasCancel = this.type.indexOf("error") < 0 && this.type.indexOf("nocancel") < 0; + var hasOk = this.type != "connecting" && this.type != "success" && this.type.indexOf("nook") < 0; var hasClose = this.type.indexOf("hasclose") >= 0; var show_progress = this.type == "connecting"; var me = this;