Allow user to close asset gui window

This commit is contained in:
Emil Axelsson
2017-12-07 11:37:13 +01:00
parent 9630e735db
commit da1a8f0796
+3 -2
View File
@@ -37,8 +37,9 @@ GuiAssetComponent::GuiAssetComponent()
{}
void GuiAssetComponent::render() {
bool v = _isEnabled;
ImGui::Begin("Assets", &v);
bool e = _isEnabled;
ImGui::Begin("Assets", &e);
_isEnabled = e;
ImGui::Columns(2);
ImGui::Separator();