mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user