@@ -163,7 +163,7 @@ def make_line(
163
163
)
164
164
165
165
def make_header (position , project_files , files_and_libs ):
166
- # pylint: disable=too-many-locals
166
+ # pylint: disable=too-many-locals, too-many-branches
167
167
# Static files
168
168
make_line (
169
169
"CIRCUITPY" ,
@@ -198,8 +198,7 @@ def make_header(position, project_files, files_and_libs):
198
198
icon = file_icon ,
199
199
)
200
200
201
- # TODO: Add settings.toml if it's needed
202
-
201
+ # Add settings.toml if it's needed
203
202
if settings_required (files_and_libs ):
204
203
make_line (
205
204
"settings.toml" ,
@@ -247,6 +246,10 @@ def make_header(position, project_files, files_and_libs):
247
246
248
247
extra_rows = 0
249
248
for i , file in enumerate (sorted (project_folders_to_draw .keys ())):
249
+ if len (project_folders_to_draw [file ]) > 0 :
250
+ triangle_to_use = down_triangle
251
+ else :
252
+ triangle_to_use = right_triangle
250
253
make_line (
251
254
file ,
252
255
(
@@ -257,7 +260,7 @@ def make_header(position, project_files, files_and_libs):
257
260
* (begin_y_offset + i + len (project_files_to_draw ) + extra_rows )
258
261
),
259
262
),
260
- triangle_icon = down_triangle ,
263
+ triangle_icon = triangle_to_use ,
261
264
)
262
265
rows_added += 1
263
266
for sub_file in sorted (project_folders_to_draw [file ]):
0 commit comments