1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-09-12 05:07:06 +00:00

Fix "Could not locate metadataDialog"

This commit is contained in:
EliteMasterEric 2023-10-15 00:22:25 -04:00
parent 1ccb84bbf2
commit 098dedd41e
2 changed files with 2 additions and 4 deletions

2
assets

@ -1 +1 @@
Subproject commit 2f49d84392bce6e5e6f1396ac6da5c5d5ab28395
Subproject commit e6f43593b88123e687b505280bd112bade7552ae

View file

@ -557,11 +557,9 @@ class ChartEditorDialogHandler
var dialog:Null<Dialog> = openDialog(state, CHART_EDITOR_DIALOG_SONG_METADATA_LAYOUT, true, false);
if (dialog == null) throw 'Could not locate Song Metadata dialog';
var dialogContainer:Null<Dialog> = dialog.findComponent('metadataDialog', Dialog);
if (dialogContainer == null) throw 'Could not locate metadataDialog in Song Metadata dialog';
if (targetVariation != Constants.DEFAULT_VARIATION)
{
dialogContainer.title = 'New Chart - Provide Song Metadata (${targetVariation.toTitleCase()})';
dialog.title = 'New Chart - Provide Song Metadata (${targetVariation.toTitleCase()})';
}
var buttonCancel:Null<Button> = dialog.findComponent('dialogCancel', Button);