1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-06 17:25:19 +00:00

Make asset library's column count dynamic

(cherry picked from commit d65eb592b0)
This commit is contained in:
python273
2022-07-02 23:15:42 +03:00
committed by Rémi Verschelde
parent 995281ca90
commit 77a9f3d4d8
3 changed files with 17 additions and 8 deletions

View File

@@ -1779,7 +1779,6 @@ void ProjectManager::_notification(int p_what) {
}
if (asset_library) {
real_t size = get_size().x / EDSCALE;
asset_library->set_columns(size < 1000 ? 1 : 2);
// Adjust names of tabs to fit the new size.
if (size < 650) {
local_projects_hb->set_name(TTR("Local"));