[#13] poprawki i wyrzucenie predefiniowanych statusów

This commit is contained in:
2026-06-30 20:31:06 +02:00
parent 8326c4b279
commit 62f99868b9
10 changed files with 18 additions and 30 deletions
@@ -134,7 +134,7 @@ public class ExampleCustomSettingsSO : CustomSettingsSO
// Clicked foldout without settings attached - do nothing
if (_settingsTypeMap[key] is not {} settingsType) return;
var settings = _mainSettings.settings.FirstOrDefault(s => s.GetType() == settingsType);
var settings = _mainSettings.settings.FirstOrDefault(s => s && s.GetType() == settingsType);
_objectField.objectType = settingsType;
_objectField.SetValueWithoutNotify(settings);