Make asset library's column count dynamic

This commit is contained in:
python273
2022-07-02 23:42:09 +03:00
parent 73812c70f2
commit d65eb592b0
3 changed files with 17 additions and 8 deletions
-1
View File
@@ -1895,7 +1895,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"));