From 3bb9b15966f2edf6dfa6da69b58e94107105d43d Mon Sep 17 00:00:00 2001 From: Bertrand256 Date: Mon, 12 Jun 2023 20:06:49 +0200 Subject: [PATCH] Fix: hide the "copy command text" button when not needed. --- src/revoke_mn_dlg.py | 1 + src/upd_mn_registrar_dlg.py | 1 + src/upd_mn_service_dlg.py | 1 + 3 files changed, 3 insertions(+) diff --git a/src/revoke_mn_dlg.py b/src/revoke_mn_dlg.py index 235deefb..0d178cfa 100644 --- a/src/revoke_mn_dlg.py +++ b/src/revoke_mn_dlg.py @@ -145,6 +145,7 @@ def update_ctrls_state(self): self.lblManualCommands.setText('Show commands for manual execution') + self.btnCopyCommandText.setVisible(self.show_manual_commands) self.edtManualCommands.setVisible(self.show_manual_commands) self.minimize_dialog_height() diff --git a/src/upd_mn_registrar_dlg.py b/src/upd_mn_registrar_dlg.py index 401a2ee8..31d695d5 100644 --- a/src/upd_mn_registrar_dlg.py +++ b/src/upd_mn_registrar_dlg.py @@ -301,6 +301,7 @@ def set_info_label(lbl_ctrl: QLabel, msg: str, style: str): self.lblManualCommands.setText('Show commands for manual execution') + self.btnCopyCommandText.setVisible(self.show_manual_commands) self.edtManualCommands.setVisible(self.show_manual_commands) self.lblMessage.setText('By clicking <Send ' diff --git a/src/upd_mn_service_dlg.py b/src/upd_mn_service_dlg.py index b9086579..483a7f01 100644 --- a/src/upd_mn_service_dlg.py +++ b/src/upd_mn_service_dlg.py @@ -265,6 +265,7 @@ def set_info_label(lbl_ctrl: QLabel, msg: str, style: str): 'href="show">Show commands for manual execution') 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)