From 9c66864777133f7abd5015c63b55b84d597adc1b Mon Sep 17 00:00:00 2001 From: Dan Smith Date: Mon, 26 Jun 2023 20:55:36 -0700 Subject: [PATCH] Constrain port box width Avoid letting the port dialog grow to insane widths due to ridiculous system port names (I'm glaring at you Prolific). Fixes #10675 --- chirp/wxui/clone.py | 1 + 1 file changed, 1 insertion(+) diff --git a/chirp/wxui/clone.py b/chirp/wxui/clone.py index c8e7fd8f0..aee93eb89 100644 --- a/chirp/wxui/clone.py +++ b/chirp/wxui/clone.py @@ -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)