mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
Don't do work if assigning stylesheet a control already has
This commit is contained in:
@@ -51,6 +51,7 @@ END TEMPLATE-->
|
||||
### Other
|
||||
|
||||
* Add pure to some SharedTransformSystem methods.
|
||||
* `Control.Stylesheet` does not do any work if assigning the value it already has.
|
||||
|
||||
### Internal
|
||||
|
||||
|
||||
@@ -19,6 +19,9 @@ namespace Robust.Client.UserInterface
|
||||
get => _stylesheet;
|
||||
set
|
||||
{
|
||||
if (ReferenceEquals(_stylesheet, value))
|
||||
return;
|
||||
|
||||
_stylesheet = value;
|
||||
StylesheetUpdateRecursive();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user