Skip to content

Commit 0139fd3

Browse files
committed
gui refactor (hihglighted options)
1 parent 73641da commit 0139fd3

File tree

3 files changed

+116
-108
lines changed

3 files changed

+116
-108
lines changed

seedtool/seed.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ class SSKRShareSeq {
115115
int last_restore_error() { return last_rv; }
116116

117117
uint8_t *shares[MAX_SHARES]; // shares in bytes format
118-
String shares_ur[MAX_SHARES]; // shares in ur format (read only)
119-
String shares_bytewords[MAX_SHARES]; // shares in bytewords format (read-only)
118+
String shares_ur[MAX_SHARES]; // shares in ur format @TODO: getter
119+
String shares_bytewords[MAX_SHARES]; // shares in bytewords format @TODO: getter
120120
size_t shares_len; // threshold
121121
size_t bytes_in_each_share;
122122

seedtool/userinterface.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ struct pg_derivation_path_t {
5656
};
5757

5858
struct pg_set_xpub_format_t {
59-
format xpub_format;
59+
format current;
6060

6161
String get_xpub_format_as_string(void) {
62-
switch(xpub_format) {
62+
switch(current) {
6363
case text:
6464
return "base58";
6565
case qr_text:
@@ -81,6 +81,7 @@ struct pg_xpub_menu_t {
8181
struct pg_set_xpub_options_t {
8282
bool slip132;
8383
bool show_derivation_path;
84+
bool current; // currently selected option out of 2
8485
};
8586

8687
struct pg_set_seed_format_t {

0 commit comments

Comments
 (0)