We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a0f8f2 commit af07ee7Copy full SHA for af07ee7
ledger_device_sdk/src/nbgl/nbgl_home_and_settings.rs
@@ -44,7 +44,7 @@ pub enum PageIndex {
44
}
45
46
/// Used to display the home screen of the application, with an optional glyph,
47
-/// information fields, and settings switches.
+/// information fields, and settings switches.
48
pub struct NbglHomeAndSettings {
49
app_name: CString,
50
info_contents: Vec<CString>,
@@ -134,11 +134,8 @@ impl<'a> NbglHomeAndSettings {
134
135
136
137
- pub fn set_start_page(self, page: PageIndex) -> NbglHomeAndSettings {
138
- NbglHomeAndSettings {
139
- start_page: page,
140
- ..self
141
- }
+ pub fn set_start_page(&mut self, page: PageIndex) {
+ self.start_page = page;
142
143
144
/// Show the home screen and settings page.
0 commit comments