@@ -142,24 +142,6 @@ static rg_gui_event_t startup_app_cb(rg_gui_option_t *option, rg_gui_event_t eve
142
142
return RG_DIALOG_VOID ;
143
143
}
144
144
145
- static rg_gui_event_t launcher_options_cb (rg_gui_option_t * option , rg_gui_event_t event )
146
- {
147
- if (event == RG_DIALOG_ENTER )
148
- {
149
- const rg_gui_option_t options [] = {
150
- {0 , "Color theme " , "..." , 1 , & color_theme_cb },
151
- {0 , "Preview " , "..." , 1 , & show_preview_cb },
152
- {0 , "Scroll mode " , "..." , 1 , & scroll_mode_cb },
153
- {0 , "Start screen" , "..." , 1 , & start_screen_cb },
154
- {0 , "Hide tabs " , "..." , 1 , & toggle_tabs_cb },
155
- RG_DIALOG_END ,
156
- };
157
- gui_redraw (); // clear main menu
158
- rg_gui_dialog ("Launcher Options" , options , 0 );
159
- }
160
- return RG_DIALOG_VOID ;
161
- }
162
-
163
145
#ifdef RG_ENABLE_NETWORKING
164
146
static rg_gui_event_t updater_cb (rg_gui_option_t * option , rg_gui_event_t event )
165
147
{
@@ -192,6 +174,28 @@ static rg_gui_event_t webui_switch_cb(rg_gui_option_t *option, rg_gui_event_t ev
192
174
}
193
175
#endif
194
176
177
+ static rg_gui_event_t launcher_options_cb (rg_gui_option_t * option , rg_gui_event_t event )
178
+ {
179
+ if (event == RG_DIALOG_ENTER )
180
+ {
181
+ const rg_gui_option_t options [] = {
182
+ {0 , "Color theme " , "-" , RG_DIALOG_FLAG_NORMAL , & color_theme_cb },
183
+ {0 , "Preview " , "-" , RG_DIALOG_FLAG_NORMAL , & show_preview_cb },
184
+ {0 , "Scroll mode " , "-" , RG_DIALOG_FLAG_NORMAL , & scroll_mode_cb },
185
+ {0 , "Start screen" , "-" , RG_DIALOG_FLAG_NORMAL , & start_screen_cb },
186
+ {0 , "Hide tabs " , "-" , RG_DIALOG_FLAG_NORMAL , & toggle_tabs_cb },
187
+ #ifdef RG_ENABLE_NETWORKING
188
+ {0 , "File server " , "-" , RG_DIALOG_FLAG_NORMAL , & webui_switch_cb },
189
+ #endif
190
+ {0 , "Startup app " , "-" , RG_DIALOG_FLAG_NORMAL , & startup_app_cb },
191
+ RG_DIALOG_END ,
192
+ };
193
+ gui_redraw (); // clear main menu
194
+ rg_gui_dialog ("Launcher Options" , options , 0 );
195
+ }
196
+ return RG_DIALOG_VOID ;
197
+ }
198
+
195
199
static rg_gui_event_t prebuild_cache_cb (rg_gui_option_t * option , rg_gui_event_t event )
196
200
{
197
201
if (event == RG_DIALOG_ENTER )
@@ -432,11 +436,7 @@ void app_main(void)
432
436
.event = & event_handler ,
433
437
};
434
438
const rg_gui_option_t options [] = {
435
- #ifdef RG_ENABLE_NETWORKING
436
- {0 , "File server" , "-" , RG_DIALOG_FLAG_NORMAL , & webui_switch_cb },
437
- #endif
438
- {0 , "Startup app " , "..." , 1 , & startup_app_cb },
439
- {0 , "Launcher options" , NULL , 1 , & launcher_options_cb },
439
+ {0 , "Launcher options" , NULL , RG_DIALOG_FLAG_NORMAL , & launcher_options_cb },
440
440
RG_DIALOG_END ,
441
441
};
442
442
0 commit comments