diff --git a/deps/ledger-zxlib/app/ui/view_nano_inspect.c b/deps/ledger-zxlib/app/ui/view_nano_inspect.c index 3e26e15a..fe9c5d8d 100644 --- a/deps/ledger-zxlib/app/ui/view_nano_inspect.c +++ b/deps/ledger-zxlib/app/ui/view_nano_inspect.c @@ -41,14 +41,12 @@ void view_inspect_init(viewfunc_getInnerItem_t view_funcGetInnerItem, } bool h_paging_inspect_go_to_root_screen() { - return (viewdata.innerField.level >= 0) && - (viewdata.innerField.paging.itemIdx == 0) + return (viewdata.innerField.paging.itemIdx == 0) && (viewdata.innerField.trace[0] != 0); } bool h_paging_inspect_back_screen() { - return (viewdata.innerField.level >= 0) && - (viewdata.innerField.paging.itemIdx == (viewdata.innerField.paging.itemCount - 1)) + return (viewdata.innerField.paging.itemIdx == (viewdata.innerField.paging.itemCount - 1)) && (viewdata.innerField.trace[0] != 0); }