Skip to content

Commit

Permalink
tools: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dbartolini committed Oct 27, 2024
1 parent 88ec3cd commit 4c9d5c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/level_editor/project_browser.vala
Original file line number Diff line number Diff line change
Expand Up @@ -519,15 +519,15 @@ public class ProjectBrowser : Gtk.Bin
model.get_value(iter, ProjectStore.Column.TYPE, out type);
model.get_value(iter, ProjectStore.Column.NAME, out name);

bool should_hide = (string)type != null
bool should_show = (string)type != null
&& (string)name != null
&& !row_should_be_hidden((string)type, (string)name)
;

if (_show_icon_view) {
return should_hide && type == "<folder>";
return should_show && type == "<folder>";
} else {
return should_hide;
return should_show;
}
});

Expand Down

0 comments on commit 4c9d5c7

Please sign in to comment.