Skip to content

Commit

Permalink
#5461: Sound chooser dialog is expanding the top-level items in the t…
Browse files Browse the repository at this point in the history
…reeview after population. Made the window a bit taller.
  • Loading branch information
codereader committed Dec 26, 2020
1 parent 612e429 commit 598cf30
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion radiant/uimanager/SoundChooser.cpp
Expand Up @@ -173,7 +173,7 @@ SoundChooser::SoundChooser(wxWindow* parent) :
std::bind(&SoundChooser::testShowShaderDefinition, this)
);

FitToScreen(0.5f, 0.5f);
FitToScreen(0.5f, 0.7f);

// Connect the finish callback to load the treestore
Bind(wxutil::EV_TREEMODEL_POPULATION_FINISHED, &SoundChooser::_onTreeStorePopulationFinished, this);
Expand Down Expand Up @@ -322,6 +322,9 @@ void SoundChooser::setTreeViewModel()
assert(_treeStore);
setSelectedShader(_shaderToSelect);
}

// Make sure the top-level items are expanded
_treeView->ExpandTopLevelItems();
}

void SoundChooser::_onTreeStorePopulationFinished(wxutil::TreeModel::PopulationFinishedEvent& ev)
Expand Down

0 comments on commit 598cf30

Please sign in to comment.