Skip to content

Commit a5ec53d

Browse files
committed
chore: disable Hidden logging, add another pre-set value comparison
1 parent d53372b commit a5ec53d

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

Intersect.Client.Framework/Gwen/Control/Base.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -483,12 +483,12 @@ public virtual bool IsHidden
483483
{
484484
if (value == mHidden)
485485
{
486-
ApplicationContext.CurrentContext.Logger.LogTrace(
487-
"{ComponentTypeName} (\"{ComponentName}\") set to same visibility ({Visibility})",
488-
GetType().GetName(qualified: true),
489-
CanonicalName,
490-
!value
491-
);
486+
// ApplicationContext.CurrentContext.Logger.LogTrace(
487+
// "{ComponentTypeName} (\"{ComponentName}\") set to same visibility ({Visibility})",
488+
// GetType().GetName(qualified: true),
489+
// CanonicalName,
490+
// !value
491+
// );
492492
return;
493493
}
494494

Intersect.Client.Framework/Gwen/Control/WindowControl.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,15 @@ public string Title
125125
public bool IsClosable
126126
{
127127
get => !mCloseButton.IsHidden;
128-
set => mCloseButton.IsHidden = !value;
128+
set
129+
{
130+
if (value == mCloseButton.IsVisible)
131+
{
132+
return;
133+
}
134+
135+
mCloseButton.IsVisible = value;
136+
}
129137
}
130138

131139
/// <summary>

0 commit comments

Comments
 (0)