Skip to content

Commit 192ccb1

Browse files
committed
feat: add costum error show ui
1 parent 1474bb9 commit 192ccb1

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

app/ui/view.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ void view_message_show(char *title, char *message);
5858
/// view_error (error view)
5959
void view_error_show();
6060

61+
void view_costum_error_show(char *title, char *statusString);
62+
6163
void view_review_init(viewfunc_getItem_t viewfuncGetItem,
6264
viewfunc_getNumItems_t viewfuncGetNumItems,
6365
viewfunc_accept_t viewfuncAccept);

app/ui/view_nano.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ void view_error_show() {
6666
view_error_show_impl();
6767
}
6868

69+
void view_costum_error_show(char *title, char *statusString) {
70+
snprintf(viewdata.key, MAX_CHARS_PER_KEY_LINE, "%s", title);
71+
snprintf(viewdata.value, MAX_CHARS_PER_VALUE1_LINE, "%s", statusString);
72+
view_error_show_impl();
73+
}
74+
6975
///////////////////////////////////
7076
// Paging related
7177
bool h_paging_can_increase() {

0 commit comments

Comments
 (0)