mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Dcs 2.9.5 (#3393)
DCS 2.9.5 Support (including F-4) --------- Co-authored-by: Raffson <Raffson@users.noreply.github.com> Co-authored-by: Starfire13 <72491792+Starfire13@users.noreply.github.com>
This commit is contained in:
@@ -127,6 +127,12 @@ class QFlightPayloadTab(QFrame):
|
||||
scrolling_layout.addWidget(docsText)
|
||||
|
||||
self.setLayout(layout)
|
||||
# Increase width of tab when there are long loadout names. Add 50px to loadout selector
|
||||
# to account for padding around the selector.
|
||||
width = max(
|
||||
self.sizeHint().width(), self.loadout_selector.sizeHint().width() + 50
|
||||
)
|
||||
self.setMinimumWidth(width)
|
||||
|
||||
def resize_for_flight(self) -> None:
|
||||
self.member_selector.setMaximum(self.flight.count - 1)
|
||||
|
||||
Reference in New Issue
Block a user