Skip to content

Commit

Permalink
remove pending review
Browse files Browse the repository at this point in the history
  • Loading branch information
PolyProgrammist committed Jul 30, 2024
1 parent 46e8b5e commit 3905063
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,5 @@ icon = "icons/app_near_14px.gif"
icon = "icons/app_near_32px.gif"

[features]
default = ["pending_review_screen"]
pending_review_screen = []
default = []
speculos = ["ledger_device_sdk/speculos"]
10 changes: 0 additions & 10 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,23 +238,13 @@ impl TryFrom<ApduHeader> for Instruction {
#[cfg(any(target_os = "stax", target_os = "flex"))]
use ledger_device_sdk::nbgl::init_comm;

#[cfg(feature = "pending_review_screen")]
#[cfg(not(any(target_os = "stax", target_os = "flex")))]
use ledger_device_sdk::ui::gadgets::display_pending_review;

#[no_mangle]
extern "C" fn sample_main() {
let mut comm = Comm::new();

#[cfg(any(target_os = "stax", target_os = "flex"))]
init_comm(&mut comm);

// Developer mode / pending review popup
// must be cleared with user interaction
#[cfg(feature = "pending_review_screen")]
#[cfg(not(any(target_os = "stax", target_os = "flex")))]
display_pending_review(&mut comm);

loop {
// Wait for either a specific button push to exit the app
// or an APDU command
Expand Down

0 comments on commit 3905063

Please sign in to comment.