Changeset 069cb81d9fd1…
Parent eecefcfadd86…
by
Changes to 4 files · Browse files at 069cb81d9fd1 Showing diff from parent eecefcfadd86 Diff from another changeset...
@@ -1084,9 +1084,8 @@ # bring up the config dialog for user to enter their username.
# But since we can't be sure they will do it right, we will
# have them to retry, to re-trigger the checking mechanism.
- dlg = thgconfig.ConfigDialog(False)
+ dlg = thgconfig.ConfigDialog(False, focus='ui.username')
dlg.show_all()
- dlg.focus_field('ui.username')
dlg.run()
dlg.hide()
self.refreshui()
@@ -1296,9 +1295,8 @@ buf.set_text('\n'.join(lines))
def msg_config(self, sender):
- dlg = thgconfig.ConfigDialog(True)
+ dlg = thgconfig.ConfigDialog(True, focus='tortoisehg.summarylen')
dlg.show_all()
- dlg.focus_field('tortoisehg.summarylen')
dlg.run()
dlg.hide()
self.refreshui()
|
@@ -677,9 +677,8 @@ if os.path.basename(editor) in ('vi', 'vim', 'hgeditor'):
Prompt(_('No visual editor configured'),
_('Please configure a visual editor.'), self).run()
- dlg = thgconfig.ConfigDialog(False)
+ dlg = thgconfig.ConfigDialog(False, focus='tortoisehg.editor')
dlg.show_all()
- dlg.focus_field('tortoisehg.editor')
dlg.run()
dlg.hide()
self.ui = ui.ui()
|
@@ -235,9 +235,8 @@ self._flaglist.append(['STABLE'])
def _on_conf_clicked(self, button):
- dlg = thgconfig.ConfigDialog(False)
+ dlg = thgconfig.ConfigDialog(False, focus='email.from')
dlg.show_all()
- dlg.focus_field('email.from')
dlg.run()
dlg.hide()
self._refresh(False)
@@ -281,9 +280,8 @@ if not self.repo.ui.config('smtp', 'host'):
dialog.info_dialog(self, _('Info required'),
_('You must configure SMTP'))
- dlg = thgconfig.ConfigDialog(False)
+ dlg = thgconfig.ConfigDialog(False, focus='smtp.host')
dlg.show_all()
- dlg.focus_field('smtp.host')
dlg.run()
dlg.hide()
self._refresh(False)
|
@@ -214,9 +214,8 @@ threading.Thread(target=start_browser).start()
def _on_conf_clicked(self, *args):
- dlg = thgconfig.ConfigDialog(True)
+ dlg = thgconfig.ConfigDialog(True, focus='web.name')
dlg.show_all()
- dlg.focus_field('web.name')
dlg.run()
dlg.hide()
self._get_config()
|
Loading...