Skip to content

Commit

Permalink
Fix: hide the "copy command text" button when not needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bertrand256 committed Jun 12, 2023
1 parent d2bb397 commit 3bb9b15
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/revoke_mn_dlg.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ def update_ctrls_state(self):
self.lblManualCommands.setText('<a style="text-decoration:none" '
'href="show">Show commands for manual execution</a>')

self.btnCopyCommandText.setVisible(self.show_manual_commands)
self.edtManualCommands.setVisible(self.show_manual_commands)

self.minimize_dialog_height()
Expand Down
1 change: 1 addition & 0 deletions src/upd_mn_registrar_dlg.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ def set_info_label(lbl_ctrl: QLabel, msg: str, style: str):
self.lblManualCommands.setText('<a style="text-decoration:none" '
'href="show">Show commands for manual execution</a>')

self.btnCopyCommandText.setVisible(self.show_manual_commands)
self.edtManualCommands.setVisible(self.show_manual_commands)

self.lblMessage.setText('<span style="color:#ff6600">By clicking <span style="font-weight:800">&lt;Send '
Expand Down
1 change: 1 addition & 0 deletions src/upd_mn_service_dlg.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ def set_info_label(lbl_ctrl: QLabel, msg: str, style: str):
'href="show">Show commands for manual execution</a>')

self.edtManualCommands.setVisible(self.show_manual_commands)
self.btnCopyCommandText.setVisible(self.show_manual_commands)
if self.masternode.masternode_type == MasternodeType.HPMN:
if self.platform_node_key_type == InputKeyType.PRIVATE:
self.btnGeneratePlatformNodeKey.setVisible(True)
Expand Down

0 comments on commit 3bb9b15

Please sign in to comment.