mirror of
https://github.com/huderlem/porymap.git
synced 2026-09-15 04:15:36 -05:00
Fix new maps parsing scripts file too early
This commit is contained in:
@@ -171,7 +171,7 @@ void EventFrame::setActive(bool active) {
|
||||
void EventFrame::populateScriptDropdown(NoScrollComboBox * combo, Project * project) {
|
||||
// The script dropdown is populated with scripts used by the map's events and from its scripts file.
|
||||
if (this->event->getMap())
|
||||
combo->addItems(this->event->getMap()->getScriptLabels());
|
||||
combo->addItems(this->event->getMap()->getScriptLabels(this->event->getEventGroup()));
|
||||
|
||||
// The dropdown's autocomplete has all script labels across the full project.
|
||||
auto completer = new QCompleter(project->globalScriptLabels, combo);
|
||||
|
||||
Reference in New Issue
Block a user