parent
006561a081
commit
bb3429c1c5
2 changed files with 8 additions and 0 deletions
|
@ -1422,6 +1422,7 @@ void ProjectManager::_on_projects_updated() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void ProjectManager::_on_project_created(const String &dir) {
|
void ProjectManager::_on_project_created(const String &dir) {
|
||||||
|
project_filter->clear();
|
||||||
bool has_already = false;
|
bool has_already = false;
|
||||||
for (int i = 0; i < scroll_children->get_child_count(); i++) {
|
for (int i = 0; i < scroll_children->get_child_count(); i++) {
|
||||||
HBoxContainer *hb = Object::cast_to<HBoxContainer>(scroll_children->get_child(i));
|
HBoxContainer *hb = Object::cast_to<HBoxContainer>(scroll_children->get_child(i));
|
||||||
|
@ -2235,3 +2236,9 @@ ProjectListFilter::ProjectListFilter() {
|
||||||
|
|
||||||
has_search_box = false;
|
has_search_box = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ProjectListFilter::clear() {
|
||||||
|
if (has_search_box) {
|
||||||
|
search_box->clear();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -154,6 +154,7 @@ public:
|
||||||
FilterOption get_filter_option();
|
FilterOption get_filter_option();
|
||||||
void set_filter_option(FilterOption);
|
void set_filter_option(FilterOption);
|
||||||
ProjectListFilter();
|
ProjectListFilter();
|
||||||
|
void clear();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // PROJECT_MANAGER_H
|
#endif // PROJECT_MANAGER_H
|
||||||
|
|
Loading…
Reference in a new issue