Property Panel Refresh Hotfix

This commit is contained in:
hyperion51 2020-06-12 02:11:31 +01:00
commit cbebc78af1
3 changed files with 3 additions and 1 deletions

View file

@ -20,6 +20,7 @@
<Path>Library</Path>
<Path>Logs</Path>
<Path>Server</Path>
<Path>Temp</Path>
<Path>obj</Path>
</explicitExcludes>
</component>

View file

@ -305,6 +305,7 @@ public class StrategyGameManager : MonoBehaviour
if (_currentTab == ColonyTabButton)
{
PropertiesPanel.Clear();
PropertiesPanel.RemoveListener();
ColonyTab.Open(_selectedColony);
}
};

View file

@ -63,7 +63,7 @@ public class PropertiesPanel : MonoBehaviour
public void Clear()
{
RemoveListener();
//RemoveListener();
foreach(var property in Properties)
Destroy(property);
Properties.Clear();