Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
magic-lantern
magic-lantern
Commits
1939f0c3d408
Commit
bf3f7a6b
authored
Jul 03, 2018
by
alex@thinkpad
Browse files
Config options: fix issue
#2892
(custom presets not appearing in menu) --HG-- branch : lua_fix
parent
61c6a87770fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/config.c
View file @
1939f0c3
...
...
@@ -658,7 +658,7 @@ static void config_preset_scan()
}
/* update the Config Presets menu */
cfg_menus
[
0
].
children
[
0
].
max
=
config_preset_num
-
1
;
cfg_menus
[
0
].
children
[
1
].
max
=
config_preset_num
-
1
;
}
static
MENU_SELECT_FUNC
(
config_save_select
)
...
...
@@ -668,7 +668,7 @@ static MENU_SELECT_FUNC(config_save_select)
static
MENU_SELECT_FUNC
(
config_preset_toggle
)
{
menu_numeric_toggle
(
&
config_new_preset_index
,
delta
,
0
,
config_preset_num
);
menu_numeric_toggle
(
&
config_new_preset_index
,
delta
,
0
,
config_preset_num
-
1
);
if
(
!
config_new_preset_index
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment