Fix error while destroying a failing ruleset config browser.

This commit is contained in:
2023-12-25 15:04:46 +08:00
parent 45d80522eb
commit 9bfa7f2048

View File

@@ -72,7 +72,7 @@ namespace Cryville.Crtr.Browsing.UI {
Master.Actions.Register(_useSkinAction = new UseSkinAction(this));
}
void OnDestroy() {
Master.Actions.Unregister(_useSkinAction);
if (_loaded) Master.Actions.Unregister(_useSkinAction);
}
public void SetSkin(string skin) {