Skip to content

Commit

Permalink
Ignore files in maps/ that dont end with .conf
Browse files Browse the repository at this point in the history
  • Loading branch information
TechnicJelle committed Nov 20, 2024
1 parent d8bd7a0 commit 9158d03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/project_view/sidebar/sidebar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class _SidebarState extends ConsumerState<Sidebar> {
if (entity is Directory) {
if (p.basename(entity.path) == "maps") {
for (final FileSystemEntity map in entity.listSync()) {
if (map is File) {
if (map is File && map.path.endsWith(".conf")) {
maps.add(map);
}
}
Expand Down Expand Up @@ -85,7 +85,7 @@ class _SidebarState extends ConsumerState<Sidebar> {
//could not get destination, so we nuke everything and re-add it all
maps.clear();
for (final FileSystemEntity map in entity.listSync()) {
if (map is File) {
if (map is File && map.path.endsWith(".conf")) {
maps.add(map);
}
}
Expand Down

0 comments on commit 9158d03

Please sign in to comment.