@@ -1263,11 +1263,9 @@ def run(self):
12631263 return Destination (SeedOptionsView , view_args = {"seed_num" : self .seed_num }, clear_history = True )
12641264
12651265 elif button_data [selected_menu_num ] == self .GENERATE_SP_ADDRESS :
1266- # Check if labels are enabled
1267- if self .should_show_labels ():
1266+ if self .settings .get_value (SettingsConstants .SETTING__BIP352_SILENT_PAYMENTS ) == SettingsConstants .BIP352__ENABLED_WITH_LABELS :
12681267 return Destination (SeedBIP352LabelPromptView , view_args = {"seed_num" : self .seed_num })
12691268 else :
1270- # Skip label prompt and generate unlabeled address directly
12711269 return Destination (SeedBIP352GeneratePaymentAddressView , view_args = {"seed_num" : self .seed_num })
12721270
12731271 elif button_data [selected_menu_num ] == self .EXPORT_SIGNING_PUBKEY :
@@ -1276,10 +1274,6 @@ def run(self):
12761274 elif button_data [selected_menu_num ] == self .EXPORT_SCANNING_PRIVKEY :
12771275 return Destination (SeedBIP352ExportScanningPrivkeyDetailsView , view_args = {"seed_num" : self .seed_num })
12781276
1279- def should_show_labels (self ):
1280- sp_setting = self .settings .get_value (SettingsConstants .SETTING__BIP352_SILENT_PAYMENTS )
1281- return sp_setting == SettingsConstants .BIP352__ENABLED_WITH_LABELS
1282-
12831277
12841278
12851279class BaseBIP352QRView (BaseQRDisplayView ):
@@ -1345,7 +1339,6 @@ def __init__(self, seed_num: int):
13451339 self .scanning_privkey_str = scanning_key_obj .to_string ()
13461340
13471341 def run (self ):
1348- # First, show a dire warning screen
13491342 if self .settings .get_value (SettingsConstants .SETTING__DIRE_WARNINGS ) != SettingsConstants .OPTION__DISABLED :
13501343 selected_warning_option = self .run_screen (
13511344 DireWarningScreen ,
@@ -1360,7 +1353,6 @@ def run(self):
13601353 return Destination (BackStackView )
13611354
13621355
1363- # If user proceeds, show the details screen
13641356 selected_details_option = self .run_screen (
13651357 seed_screens .SeedBIP352ExportScanningPrivkeyDetailsScreen ,
13661358 fingerprint = self .master_fingerprint ,
@@ -1453,7 +1445,6 @@ def run(self):
14531445 return Destination (SeedBIP352LabelEntryView , view_args = {"seed_num" : self .seed_num })
14541446
14551447 elif button_data [selected_menu_num ] == self .NO :
1456- # Generate unlabeled address
14571448 return Destination (SeedBIP352GeneratePaymentAddressView , view_args = {"seed_num" : self .seed_num })
14581449
14591450
@@ -2045,7 +2036,6 @@ def run(self):
20452036 if self .controller .unverified_address ["script_type" ] == SettingsConstants .LEGACY_P2PKH :
20462037 # Legacy P2PKH addresses are always singlesig
20472038 sig_type = SettingsConstants .SINGLE_SIG
2048-
20492039 destination = Destination (SeedSelectSeedView , view_args = dict (flow = Controller .FLOW__VERIFY_SINGLESIG_ADDR ), skip_current_view = True )
20502040
20512041 if self .controller .unverified_address ["script_type" ] == SettingsConstants .NESTED_SEGWIT :
0 commit comments