Fix Dispose errors, update KTK
This commit is contained in:
@@ -10,11 +10,11 @@ namespace AetherBags.Addons;
|
|||||||
|
|
||||||
public class AddonConfigurationWindow : NativeAddon
|
public class AddonConfigurationWindow : NativeAddon
|
||||||
{
|
{
|
||||||
private TabBarNode _tabBarNode = null!;
|
private TabBarNode? _tabBarNode;
|
||||||
|
|
||||||
private GeneralScrollingAreaNode _generalScrollingAreaNode = null!;
|
private GeneralScrollingAreaNode? _generalScrollingAreaNode;
|
||||||
private CategoryScrollingAreaNode _categoryScrollingAreaNode = null!;
|
private CategoryScrollingAreaNode? _categoryScrollingAreaNode;
|
||||||
private CurrencyScrollingAreaNode _currencyScrollingAreaNode = null!;
|
private CurrencyScrollingAreaNode? _currencyScrollingAreaNode;
|
||||||
|
|
||||||
private readonly List<NodeBase> _tabContent = new();
|
private readonly List<NodeBase> _tabContent = new();
|
||||||
|
|
||||||
@@ -73,4 +73,17 @@ public class AddonConfigurationWindow : NativeAddon
|
|||||||
for (var i = 0; i < _tabContent.Count; i++)
|
for (var i = 0; i < _tabContent.Count; i++)
|
||||||
_tabContent[i].IsVisible = i == index;
|
_tabContent[i].IsVisible = i == index;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override unsafe void OnFinalize(AtkUnitBase* addon)
|
||||||
|
{
|
||||||
|
_tabBarNode?.Dispose();
|
||||||
|
_tabBarNode = null;
|
||||||
|
_generalScrollingAreaNode?.Dispose();
|
||||||
|
_generalScrollingAreaNode = null;
|
||||||
|
_categoryScrollingAreaNode?.Dispose();
|
||||||
|
_categoryScrollingAreaNode = null;
|
||||||
|
_currencyScrollingAreaNode?.Dispose();
|
||||||
|
_currencyScrollingAreaNode = null;
|
||||||
|
base.OnFinalize(addon);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
+1
-1
Submodule KamiToolKit updated: 30789be03b...e8ad28b6a2
Reference in New Issue
Block a user