Skip to content

Commit

Permalink
op experience
Browse files Browse the repository at this point in the history
  • Loading branch information
Pana committed Nov 27, 2024
1 parent d4a3e38 commit 1000ada
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/app_ui/menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#![allow(unused_assignments)]

use include_gif::include_gif;
use ledger_device_sdk::io::Comm;

Expand Down Expand Up @@ -59,12 +57,11 @@ fn ui_setting_menu(comm: &mut Comm) -> Event<Instruction> {
let mut bs_enabled: bool = settings.get_element(blind_signing_index) != 0;
let mut bs_status = if bs_enabled { "Enabled" } else { "Disabled" };

let pages = [
&Page::from((["Blind Signing", bs_status], true)),
&Page::from(("Back", &BACK)),
];

loop {
let pages = [
&Page::from((["Blind Signing", bs_status], true)),
&Page::from(("Back", &BACK)),
];
match MultiPageMenu::new(comm, &pages).show() {
EventOrPageIndex::Event(e) => return e,
EventOrPageIndex::Index(0) => {
Expand Down

0 comments on commit 1000ada

Please sign in to comment.