preserve chat box contents across openings of the chat window

pull/34/head
Zlatin Balevsky 2019-11-18 09:55:11 +00:00
parent 9474512cbd
commit 919aeaaed5
1 changed files with 2 additions and 1 deletions

View File

@ -35,7 +35,8 @@ class ChatConsoleView extends BasicWindow {
this.core = core
this.model = model
this.textGUI = textGUI
this.textBox = new TextBox(terminalSize,"", TextBox.Style.MULTI_LINE)
TextBox textBox = model.textBox == null ? new TextBox(terminalSize,"", TextBox.Style.MULTI_LINE) : model.textBox
this.textBox = textBox
model.textBox = textBox
model.start()
this.sayField = new TextBox("", TextBox.Style.SINGLE_LINE)