File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 14
14
* See the License for the specific language governing permissions and
15
15
* limitations under the License.
16
16
*****************************************************************************/
17
- #![ allow( unused_assignments) ]
18
-
19
17
use include_gif:: include_gif;
20
18
use ledger_device_sdk:: io:: Comm ;
21
19
@@ -57,7 +55,7 @@ fn ui_setting_menu(comm: &mut Comm) -> Event<Instruction> {
57
55
58
56
let settings: Settings = Default :: default ( ) ;
59
57
let mut bs_enabled: bool = settings. get_element ( blind_signing_index) != 0 ;
60
- let mut bs_status = if bs_enabled { "Enabled" } else { "Disabled" } ;
58
+ let bs_status = if bs_enabled { "Enabled" } else { "Disabled" } ;
61
59
62
60
let pages = [
63
61
& Page :: from ( ( [ "Blind Signing" , bs_status] , true ) ) ,
@@ -72,13 +70,12 @@ fn ui_setting_menu(comm: &mut Comm) -> Event<Instruction> {
72
70
match bs_enabled {
73
71
true => {
74
72
settings. set_element ( blind_signing_index, 1 ) ;
75
- bs_status = "Enabled" ;
76
73
}
77
74
false => {
78
75
settings. set_element ( blind_signing_index, 0 ) ;
79
- bs_status = "Disabled" ;
80
76
}
81
77
}
78
+ return ui_setting_menu ( comm) ;
82
79
}
83
80
EventOrPageIndex :: Index ( 1 ) => return ui_menu_main ( comm) ,
84
81
EventOrPageIndex :: Index ( _) => ( ) ,
You can’t perform that action at this time.
0 commit comments