sc-controller
sc-controller copied to clipboard
[BUG] Profile list shows files that aren't profiles
The list of profiles shows all items in the profiles folder, rather than just the valid profiles with the .sccprofile extension.
To reproduce this, put any file that isn't an .sccprofile.mod file in the ~/.config/scc/profiles folder and restart SC Controller. Then click the dropdown menu in SC Controller, and you should see the file you put in the folder on the list of profiles. This even works if you put a folder in the ~/.config/scc/profiles folder too.
This could be fixed by checking items in the~/.config/scc/profiles folder before building the list of profiles to see if they have the correct extension, aren't a folder, and aren't a binary file.