Skip to content

Commit f4c0ec3

Browse files
committed
Merge pull request #1488 from brine/master2
hide error/debug checkboxes will now hide/show the entire chat log
2 parents 45ecd6d + c146b86 commit f4c0ec3

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

octgnFX/Octgn/Play/Gui/ChatControl.xaml.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ public bool HideErrors
8888
{
8989
return;
9090
}
91+
this.output.Document.Blocks.Clear();
92+
lastId = -1;
9193
this.hideErrors = value;
9294
this.OnPropertyChanged("HideErrors");
9395
}
@@ -116,7 +118,12 @@ public bool HideDebug
116118
}
117119
set
118120
{
119-
if (value == this.hideDebug) return;
121+
if (value.Equals(this.hideDebug))
122+
{
123+
return;
124+
}
125+
this.output.Document.Blocks.Clear();
126+
lastId = -1;
120127
this.hideDebug = value;
121128
OnPropertyChanged("HideDebug");
122129
}

recentchanges.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1+
Hide Debug and Hide Error checkboxes will affect all previous chat log as well

0 commit comments

Comments
 (0)