Commit 8a5a7ee
refactor(build-preset): make 'None' option an actual preset (#333)
This commit changes the handling of the None option of the build-preset
selection to be an actual preset. A new `is_valid` function checks if
the preset was created from the presets file or if it was added "by
hand" for the option to have no (real) build-preset selected1 parent 447fe76 commit 8a5a7ee
3 files changed
Lines changed: 21 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
12 | 16 | | |
13 | 17 | | |
14 | 18 | | |
| |||
31 | 35 | | |
32 | 36 | | |
33 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
34 | 42 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
856 | 856 | | |
857 | 857 | | |
858 | 858 | | |
859 | | - | |
860 | 859 | | |
861 | | - | |
862 | | - | |
863 | | - | |
864 | 860 | | |
865 | 861 | | |
866 | 862 | | |
867 | 863 | | |
868 | 864 | | |
869 | 865 | | |
870 | 866 | | |
871 | | - | |
872 | | - | |
873 | | - | |
874 | | - | |
| 867 | + | |
875 | 868 | | |
876 | 869 | | |
877 | 870 | | |
878 | 871 | | |
879 | | - | |
880 | | - | |
881 | 872 | | |
882 | | - | |
883 | | - | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
884 | 879 | | |
885 | 880 | | |
886 | 881 | | |
| |||
892 | 887 | | |
893 | 888 | | |
894 | 889 | | |
895 | | - | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
896 | 894 | | |
897 | 895 | | |
898 | 896 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| 132 | + | |
| 133 | + | |
132 | 134 | | |
133 | 135 | | |
134 | 136 | | |
| |||
0 commit comments