mirror of
https://github.com/dobin/SuperMega
synced 2026-06-02 17:27:10 +00:00
fix: ui: inject mode
This commit is contained in:
@@ -91,10 +91,10 @@
|
||||
{% endfor %}
|
||||
</select>
|
||||
|
||||
<select class="form-select" name="inject_style" aria-label="INJECTSTYLE" onchange="this.form.submit()">
|
||||
<select class="form-select" name="inject_mode" aria-label="INJECTSTYLE" onchange="this.form.submit()">
|
||||
{% for name, value in injectstyles %}
|
||||
<option value="{{name}}"
|
||||
{% if value in project.settings.inject_mode.value %} selected {% endif %}
|
||||
{% if value in project.settings.inject_mode.value %} selected {% endif %}
|
||||
>{{value}}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
{% endfor %}
|
||||
</select>
|
||||
|
||||
<select class="form-select" name="inject_style" aria-label="INJECTSTYLE">
|
||||
<select class="form-select" name="inject_mode" aria-label="INJECTSTYLE">
|
||||
{% for name, value in injectstyles %}
|
||||
<option value="{{name}}">{{value}}</option>
|
||||
{% endfor %}
|
||||
|
||||
@@ -112,6 +112,9 @@ def add_project():
|
||||
source_style = request.form['source_style']
|
||||
settings.source_style = SourceStyle[source_style]
|
||||
|
||||
inject_mode = request.form['inject_mode']
|
||||
settings.inject_mode = InjectStyle[inject_mode]
|
||||
|
||||
alloc_style = request.form['alloc_style']
|
||||
settings.alloc_style = AllocStyle[alloc_style]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user