Merge pull request #32444 from lupoDharkael/center-template

Project Manager: Update template dialog position after window resize
This commit is contained in:
Rémi Verschelde 2019-10-08 17:04:46 +02:00 committed by GitHub
commit e1243f75b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1753,6 +1753,12 @@ void ProjectManager::_notification(int p_what) {
Engine::get_singleton()->set_editor_hint(false);
} break;
case NOTIFICATION_RESIZED: {
if (open_templates->is_visible()) {
open_templates->popup_centered_minsize();
}
} break;
case NOTIFICATION_READY: {
if (_project_list->get_project_count() == 0 && StreamPeerSSL::is_available())