1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2026-02-04 19:42:17 +08:00
This commit is contained in:
2026-01-23 00:55:31 +08:00
parent 788ed4275e
commit 2377f92589
4 changed files with 21 additions and 26 deletions

View File

@@ -25,9 +25,10 @@ public class MyConfigWindow : MyWindowWithTabs
base._OnCreate();
_windowTrans = GetComponent<RectTransform>();
OnUICreated?.Invoke(this, _windowTrans);
AutoFitWindowSize();
SetCurrentTab(0);
OnUpdateUI?.Invoke();
// Delay 500ms to run AutoFitWindowSize() after the window is created
// Invoke(nameof(AutoFitWindowSize), 0f);
}
public override void _OnDestroy()