File tree Expand file tree Collapse file tree 3 files changed +12
-22
lines changed Expand file tree Collapse file tree 3 files changed +12
-22
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ def asset_path(asset_name):
7272 "toml" : file_icon ,
7373 "bmp" : file_image_icon ,
7474 "png" : file_image_icon ,
75+ "jpg" : file_image_icon ,
7576 "wav" : file_music_icon ,
7677 "mp3" : file_music_icon ,
7778 "mid" : file_music_icon ,
Original file line number Diff line number Diff line change 3131SHOWN_FILETYPES = [
3232 "py" ,
3333 "mpy" ,
34+ "txt" ,
35+ "toml" ,
3436 "bmp" ,
35- "pcf " ,
36- "bdf " ,
37+ "png " ,
38+ "jpg " ,
3739 "wav" ,
3840 "mp3" ,
3941 "mid" ,
40- "json " ,
41- "txt " ,
42+ "pcf " ,
43+ "bdf " ,
4244 "csv" ,
45+ "json" ,
46+ "license" ,
4347]
4448SHOWN_FILETYPES_EXAMPLE = [s for s in SHOWN_FILETYPES if s != "py" ]
4549
Original file line number Diff line number Diff line change 77"""
88
99
10- LIBRARIES_THAT_REQUIRE_SETTINGS = [
11- "adafruit_requests.mpy" ,
12- "adafruit_esp32spi" ,
13- "adafruit_minimqtt" ,
14- "adafruit_portalbase" ,
15- "adafruit_azureiot" ,
16- "adafruit_connection_manager.mpy" ,
17- ]
18-
19-
2010def settings_required (files_and_libs ):
2111 """
2212 Returns True if the project needs ot have a settings.toml file
@@ -28,11 +18,6 @@ def settings_required(files_and_libs):
2818 # settings.toml file is already in the files so we don't need to add it again
2919 return False
3020
31- # if any of the libraries that require settings.toml are included in this project
32- if any (
33- libs_that_require_settings in files_and_libs
34- for libs_that_require_settings in LIBRARIES_THAT_REQUIRE_SETTINGS
35- ):
36- return True
37-
38- return False
21+ # always show settings.toml because it is created by default when
22+ # circuitpython is loaded, and when storage.erase_filesystem() is called
23+ return True
You can’t perform that action at this time.
0 commit comments