diff --git a/src/sakia/gui/sub/certification/view.py b/src/sakia/gui/sub/certification/view.py index cdcf7b795ea987aa86bc1dbc00140037dfcf231b..b80ea9a426b1c489a444d8b62140c584c770475e 100644 --- a/src/sakia/gui/sub/certification/view.py +++ b/src/sakia/gui/sub/certification/view.py @@ -67,6 +67,9 @@ class CertificationView(QWidget, Ui_CertificationWidget): def clear(self): self.stackedWidget.setCurrentIndex(0) self.set_button_process(CertificationView.ButtonsState.SELECT_IDENTITY) + self.password_input_view.clear() + self.search_user_view.clear() + self.user_information_view.clear() def set_keys(self, connections): self.combo_connections.clear() diff --git a/src/sakia/gui/sub/password_input/view.py b/src/sakia/gui/sub/password_input/view.py index 2de53dd8380fc0a12c0293699fb8d3646761fa6a..51a32a20c6a6fc787719860b997b7f662506c394 100644 --- a/src/sakia/gui/sub/password_input/view.py +++ b/src/sakia/gui/sub/password_input/view.py @@ -22,6 +22,10 @@ class PasswordInputView(QWidget, Ui_PasswordInputWidget): self.label_info.setText(text) self.button_box.button(QDialogButtonBox.Ok).setEnabled(False) + def clear(self): + self.edit_password.clear() + self.edit_secret_key.clear() + def valid(self): self.label_info.setText(self.tr("Password is valid")) self.button_box.button(QDialogButtonBox.Ok).setEnabled(True) diff --git a/src/sakia/gui/sub/transfer/controller.py b/src/sakia/gui/sub/transfer/controller.py index fca4f9b4222ded3b4ccae98c4d1c4ef42ce09e17..3a65ec40e0249721cd8891d7e558f25acd5cc593 100644 --- a/src/sakia/gui/sub/transfer/controller.py +++ b/src/sakia/gui/sub/transfer/controller.py @@ -193,6 +193,7 @@ class TransferController(QObject): await self.view.show_success(self.model.notifications(), recipient) logging.debug("Restore cursor...") QApplication.restoreOverrideCursor() + self.view.button_box.setEnabled(True) # If we sent back a transaction we cancel the first one self.model.cancel_previous() diff --git a/src/sakia/gui/sub/transfer/view.py b/src/sakia/gui/sub/transfer/view.py index 96b53dbd0636e45223d7813173b447c2fb0aec62..afbb8ede8d558898fba6a385a826a2c3782075f7 100644 --- a/src/sakia/gui/sub/transfer/view.py +++ b/src/sakia/gui/sub/transfer/view.py @@ -73,6 +73,12 @@ class TransferView(QWidget, Ui_TransferMoneyWidget): def clear(self): self._amount_base = 0 self.radio_pubkey.setChecked(True) + self.edit_pubkey.clear() + self.spinbox_amount.setValue(0) + self.edit_message.clear() + self.password_input.clear() + self.search_user.clear() + self.user_information_view.clear() def recipient_mode(self): for radio in self.radio_to_mode: