diff --git a/ledger_device_sdk/src/nbgl/nbgl_home_and_settings.rs b/ledger_device_sdk/src/nbgl/nbgl_home_and_settings.rs index 4188041..623217f 100644 --- a/ledger_device_sdk/src/nbgl/nbgl_home_and_settings.rs +++ b/ledger_device_sdk/src/nbgl/nbgl_home_and_settings.rs @@ -44,7 +44,7 @@ pub enum PageIndex { } /// Used to display the home screen of the application, with an optional glyph, -/// information fields, and settings switches. +/// information fields, and settings switches. pub struct NbglHomeAndSettings { app_name: CString, info_contents: Vec, @@ -134,11 +134,8 @@ impl<'a> NbglHomeAndSettings { } } - pub fn set_start_page(self, page: PageIndex) -> NbglHomeAndSettings { - NbglHomeAndSettings { - start_page: page, - ..self - } + pub fn set_start_page(&mut self, page: PageIndex) { + self.start_page = page; } /// Show the home screen and settings page.