fix: Update button container paths for consistency and improve fallback handling

This commit is contained in:
2025-12-15 16:49:21 +01:00
parent 99398b5479
commit 8b9c19186b
3 changed files with 10 additions and 10 deletions

View File

@@ -17,8 +17,8 @@ namespace KCM.UI
public Button Button = null;
private static readonly string[] ButtonPaths =
{
"MainMenu/TopLevel/Body/ButtonContainer/New",
"TopLevelUICanvas/TopLevel/Body/ButtonContainer/New" // legacy path fallback
"TopLevelUICanvas/TopLevel/Body/ButtonContainer/New",
"MainMenu/TopLevel/Body/ButtonContainer/New" // fallback for older versions
};
public string Name