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