mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix more fallout from double/right click change.
This commit is contained in:
parent
fd969020af
commit
cc61893bca
@ -37,7 +37,7 @@ class Dialog:
|
||||
def open_new_package_dialog(cls, mission_target: MissionTarget):
|
||||
"""Opens the dialog to create a new package with the given target."""
|
||||
cls.new_package_dialog = QNewPackageDialog(
|
||||
cls.game_model.game,
|
||||
cls.game_model,
|
||||
cls.game_model.ato_model,
|
||||
mission_target
|
||||
)
|
||||
@ -47,7 +47,7 @@ class Dialog:
|
||||
def open_edit_package_dialog(cls, package_model: PackageModel):
|
||||
"""Opens the dialog to edit the given package."""
|
||||
cls.edit_package_dialog = QEditPackageDialog(
|
||||
cls.game_model.game,
|
||||
cls.game_model,
|
||||
cls.game_model.ato_model,
|
||||
package_model
|
||||
)
|
||||
|
||||
@ -187,9 +187,9 @@ class QNewPackageDialog(QPackageDialog):
|
||||
New packages do not affect the ATO model until they are saved.
|
||||
"""
|
||||
|
||||
def __init__(self, game: Game, model: AtoModel,
|
||||
def __init__(self, game_model: GameModel, model: AtoModel,
|
||||
target: MissionTarget) -> None:
|
||||
super().__init__(game, PackageModel(Package(target)))
|
||||
super().__init__(game_model, PackageModel(Package(target)))
|
||||
self.ato_model = model
|
||||
|
||||
self.save_button = QPushButton("Save")
|
||||
@ -218,9 +218,9 @@ class QEditPackageDialog(QPackageDialog):
|
||||
Changes to existing packages occur immediately.
|
||||
"""
|
||||
|
||||
def __init__(self, game: Game, model: AtoModel,
|
||||
def __init__(self, game_model: GameModel, model: AtoModel,
|
||||
package: PackageModel) -> None:
|
||||
super().__init__(game, package)
|
||||
super().__init__(game_model, package)
|
||||
self.ato_model = model
|
||||
|
||||
self.delete_button = QPushButton("Delete package")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user