Skip to content

Commit

Permalink
Fix color GUI "Voice config" page
Browse files Browse the repository at this point in the history
It fix the devo8 and devo12 "Voice config" page "External voice currently not available" has not [Exit] button as all other pages.
  • Loading branch information
vladislavy committed Feb 24, 2018
1 parent 182d928 commit 99d3e26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/320x240x16/voiceconfig_page.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ void PAGE_VoiceconfigInit(int page)
(void)page;
int init_y = 40;
PAGE_SetModal(0);
PAGE_ShowHeader(PAGE_GetName(PAGEID_VOICECFG));

if ( !AUDIO_VoiceAvailable() ) {
GUI_CreateLabelBox(&gui->msg, 20, 80, 280, 100, &NARROW_FONT, NULL, NULL,
_tr("External voice\ncurrently not\navailable"));
return;
}
PAGE_ShowHeader(PAGE_GetName(PAGEID_VOICECFG));


GUI_CreateScrollable(&gui->scrollable, 0, init_y, LCD_WIDTH, LCD_HEIGHT-init_y,
VOICEROWSPACER, MODEL_CUSTOM_ALARMS, row_cb, NULL, NULL, NULL);
PAGE_SetScrollable(&gui->scrollable, &current_selected);
Expand Down

0 comments on commit 99d3e26

Please sign in to comment.