Skip to content

Commit

Permalink
Constrain port box width
Browse files Browse the repository at this point in the history
Avoid letting the port dialog grow to insane widths due to
ridiculous system port names (I'm glaring at you Prolific).

Fixes #10675
  • Loading branch information
kk7ds committed Jun 27, 2023
1 parent 5b47866 commit 9c66864
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chirp/wxui/clone.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ def _add_grid(label, control):
flag=wx.EXPAND | wx.RIGHT | wx.LEFT)

self._port = wx.Choice(self, choices=[])
self._port.SetMaxSize((50, -1))
self.set_ports()
self.Bind(wx.EVT_CHOICE, self._selected_port, self._port)
_add_grid(_('Port'), self._port)
Expand Down

0 comments on commit 9c66864

Please sign in to comment.