Use American spelling of "favorite" in Project Manager code
This commit is contained in:
@ -70,7 +70,7 @@ void ProjectListItemControl::_notification(int p_what) {
|
|||||||
|
|
||||||
favorite_focus_color = get_theme_color(SNAME("accent_color"), EditorStringName(Editor));
|
favorite_focus_color = get_theme_color(SNAME("accent_color"), EditorStringName(Editor));
|
||||||
_update_favorite_button_focus_color();
|
_update_favorite_button_focus_color();
|
||||||
if (is_favourite) {
|
if (is_favorite) {
|
||||||
favorite_button->set_texture_normal(get_editor_theme_icon(SNAME("Favorites")));
|
favorite_button->set_texture_normal(get_editor_theme_icon(SNAME("Favorites")));
|
||||||
} else {
|
} else {
|
||||||
favorite_button->set_texture_normal(get_editor_theme_icon(SNAME("Unfavorite")));
|
favorite_button->set_texture_normal(get_editor_theme_icon(SNAME("Unfavorite")));
|
||||||
@ -303,7 +303,7 @@ void ProjectListItemControl::set_selected(bool p_selected) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ProjectListItemControl::set_is_favorite(bool p_favorite) {
|
void ProjectListItemControl::set_is_favorite(bool p_favorite) {
|
||||||
is_favourite = p_favorite;
|
is_favorite = p_favorite;
|
||||||
if (p_favorite) {
|
if (p_favorite) {
|
||||||
favorite_button->set_texture_normal(get_editor_theme_icon(SNAME("Favorites")));
|
favorite_button->set_texture_normal(get_editor_theme_icon(SNAME("Favorites")));
|
||||||
} else {
|
} else {
|
||||||
@ -965,7 +965,7 @@ int ProjectList::refresh_project(const String &dir_path) {
|
|||||||
// If it is in the list but doesn't exist anymore, it is marked as missing.
|
// If it is in the list but doesn't exist anymore, it is marked as missing.
|
||||||
|
|
||||||
bool should_be_in_list = _config.has_section(dir_path);
|
bool should_be_in_list = _config.has_section(dir_path);
|
||||||
bool is_favourite = _config.get_value(dir_path, "favorite", false);
|
bool is_favorite = _config.get_value(dir_path, "favorite", false);
|
||||||
|
|
||||||
bool was_selected = _selected_project_paths.has(dir_path);
|
bool was_selected = _selected_project_paths.has(dir_path);
|
||||||
|
|
||||||
@ -982,7 +982,7 @@ int ProjectList::refresh_project(const String &dir_path) {
|
|||||||
if (should_be_in_list) {
|
if (should_be_in_list) {
|
||||||
// Recreate it with updated info
|
// Recreate it with updated info
|
||||||
|
|
||||||
Item item = load_project_data(dir_path, is_favourite);
|
Item item = load_project_data(dir_path, is_favorite);
|
||||||
|
|
||||||
_projects.push_back(item);
|
_projects.push_back(item);
|
||||||
_create_project_item_control(_projects.size() - 1);
|
_create_project_item_control(_projects.size() - 1);
|
||||||
|
|||||||
@ -65,7 +65,7 @@ class ProjectListItemControl : public HBoxContainer {
|
|||||||
bool icon_needs_reload = true;
|
bool icon_needs_reload = true;
|
||||||
bool is_selected = false;
|
bool is_selected = false;
|
||||||
bool is_hovering = false;
|
bool is_hovering = false;
|
||||||
bool is_favourite = false;
|
bool is_favorite = false;
|
||||||
|
|
||||||
void _update_favorite_button_focus_color();
|
void _update_favorite_button_focus_color();
|
||||||
void _favorite_button_pressed();
|
void _favorite_button_pressed();
|
||||||
|
|||||||
Reference in New Issue
Block a user