From 636c21df949633235045e64e2a02dff84a6d1ebb Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Sun, 12 Nov 2017 21:20:56 -0600 Subject: [PATCH] Increased character limit in display name up to 50 characters --- doc/changelog.md | 1 + src/wxUI/dialogs/update_profile.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/changelog.md b/doc/changelog.md index 80890006..f3af562c 100644 --- a/doc/changelog.md +++ b/doc/changelog.md @@ -2,6 +2,7 @@ ## changes in this version +* Increased display name limit up to 50 characters in update profile dialog. * When authorising an account, you will see a dialogue with a cancel button, in case you want to abort the process. Also, NVDA will not be blocked when the process starts. ([#101](https://github.com/manuelcortez/TWBlue/issues/101)) * In the translator module, the list of available languages is fetched automatically from the provider. That means all of these languages will work and there will not be inconsistencies. Also we've removed the first combo box, because the language is detected automatically by Yandex'S API. ([#153](https://github.com/manuelcortez/TWBlue/issues/153)) * Trending topics, searches and conversation buffers will use mute settings set for the session in wich they were opened. ([#157](https://github.com/manuelcortez/TWBlue/issues/157)) diff --git a/src/wxUI/dialogs/update_profile.py b/src/wxUI/dialogs/update_profile.py index 594f7f3b..d9286516 100644 --- a/src/wxUI/dialogs/update_profile.py +++ b/src/wxUI/dialogs/update_profile.py @@ -7,12 +7,12 @@ class updateProfileDialog(baseDialog.BaseWXDialog): super(updateProfileDialog, self).__init__(parent=None, id=-1) self.SetTitle(_(u"Update your profile")) panel = wx.Panel(self) - labelName = wx.StaticText(panel, -1, _(u"&Name (20 characters maximum)")) + labelName = wx.StaticText(panel, -1, _(u"&Name (50 characters maximum)")) self.name = wx.TextCtrl(panel, -1) self.name.SetFocus() dc = wx.WindowDC(self.name) dc.SetFont(self.name.GetFont()) - self.name.SetSize(dc.GetTextExtent("0"*20)) + self.name.SetSize(dc.GetTextExtent("0"*50)) labelLocation = wx.StaticText(panel, -1, _(u"&Location")) self.location = wx.TextCtrl(panel, -1) dc = wx.WindowDC(self.location)