Merge pull request #5127 from bojidar-bg/asset-library-update-onshow

Update asset library assets only when opening the respective tab
This commit is contained in:
Juan Linietsky 2016-06-13 15:50:12 -03:00 committed by GitHub
commit fc54830f1a

View file

@ -541,8 +541,12 @@ void EditorAssetLibrary::_notification(int p_what) {
error_hb->add_child(tf);
error_label->raise();
}
_repository_changed(0);
if (p_what==NOTIFICATION_VISIBILITY_CHANGED) {
if(!is_hidden()) {
_repository_changed(0); // Update when shown for the first time
}
}
if (p_what==NOTIFICATION_PROCESS) {