Added accept button to Air Wing Configuration window. (#2307)

* Add accept button to Air Wing Configuration window.
* Update black to 22.6.0.  Change pre-commit to use updated black.
* Update click to 8.1.3.
This commit is contained in:
SnappyComebacks 2022-07-10 07:25:48 -06:00 committed by GitHub
parent 7355162d80
commit e60cde892a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 3 deletions

View File

@ -1,6 +1,6 @@
repos:
- repo: https://github.com/psf/black
rev: 22.1.0
rev: 22.6.0
hooks:
- id: black
language_version: python3

View File

@ -20,6 +20,7 @@ Saves from 5.x are not compatible with 6.0.
* **[Modding]** Updated the High Digit SAMs implementation and added the HQ-2 as well as the upgraded SA-2 and SA-3 Launchers from the mod. Threat range circles will now also be displayed correctly.
* **[UI]** Added options to the loadout editor for setting properties such as HMD choice.
* **[UI]** Added separate images for the different carrier types.
* **[UI]** Add Accept button to Air Wing Configurator screen.
* **[Campaign]** Allow campaign designers to define default values for the economy settings (starting budget and multiplier).
* **[Plugins]** Allow full support of the SkynetIADS plugin with all advanced features (connection nodes, power sources, command centers) if campaign supports it.
* **[Plugins]** Added support for the CTLD script by ciribob with many possible customization options and updated the JTAC Autolase to the CTLD included script.

View File

@ -512,6 +512,10 @@ class AirWingConfigurationDialog(QDialog):
tab_widget.addTab(coalition_tab, name)
self.tabs.append(coalition_tab)
apply_button = QPushButton("Accept")
apply_button.clicked.connect(lambda state: self.accept())
layout.addWidget(apply_button)
def reject(self) -> None:
for tab in self.tabs:
tab.apply()

View File

@ -3,10 +3,10 @@ anyio==3.5.0
asgiref==3.5.0
atomicwrites==1.4.0
attrs==21.4.0
black==22.1.0
black==22.6.0
certifi==2021.10.8
cfgv==3.3.1
click==8.0.3
click==8.1.3
colorama==0.4.4
distlib==0.3.4
Faker==12.3.0