diff --git a/res/ui/account_cfg.ui b/res/ui/account_cfg.ui index bae5dd52cef82c72ea01519020eb271497273eb2..6454c71d66e29b88a38ff2f44244234e9fb359cc 100644 --- a/res/ui/account_cfg.ui +++ b/res/ui/account_cfg.ui @@ -46,7 +46,7 @@ <item> <layout class="QHBoxLayout" name="horizontalLayout"> <item> - <widget class="QLabel" name="label"> + <widget class="QLabel" name="label_action"> <property name="text"> <string>Account name (uid)</string> </property> diff --git a/src/sakia/gui/process_cfg_account.py b/src/sakia/gui/process_cfg_account.py index b65ed1069e04cc15844982b6490357db842a61ae..401c229a7a789aed7cd6e6f43350a0a3158826ea 100644 --- a/src/sakia/gui/process_cfg_account.py +++ b/src/sakia/gui/process_cfg_account.py @@ -165,10 +165,13 @@ class ProcessConfigureAccount(QDialog, Ui_AccountConfigurationDialog): self.setWindowTitle(self.tr("New account")) self.button_delete.hide() else: + self.label_action.setText("Edit account uid") + self.edit_account_name.setPlaceholderText(self.account.name) self.stacked_pages.removeWidget(self.stacked_pages.widget(1)) step_init.next_step = step_communities self.button_next.setEnabled(True) self.stacked_pages.currentWidget() + self.setWindowTitle(self.tr("Configure {0}".format(self.account.name))) def open_process_add_community(self): @@ -221,10 +224,10 @@ class ProcessConfigureAccount(QDialog, Ui_AccountConfigurationDialog): @asyncify async def action_delete_account(self, checked=False): reply = await QAsyncMessageBox.question(self, self.tr("Warning"), - self.tr("""This action will delete your account locally. + self.tr("""This action will delete your account ({0}) locally. Please note your key parameters (salt and password) if you wish to recover it later. Your account won't be removed from the networks it joined. -Are you sure ?""")) +Are you sure ?""").format(self.app.current_account.name)) if reply == QMessageBox.Yes: account = self.app.current_account await self.app.delete_account(account)