Streamlining

This commit is contained in:
Raffson 2023-10-08 01:07:37 +02:00
parent a357097c49
commit 88a5179653
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99
3 changed files with 4 additions and 2 deletions

View File

@ -168,7 +168,7 @@ def run_ui(game: Optional[Game], ui_flags: UiFlags) -> None:
window = QLiberationWindow(game, ui_flags) window = QLiberationWindow(game, ui_flags)
window.showMaximized() window.showMaximized()
splash.finish(window) splash.finish(window)
qt_execution_code = app.exec_() qt_execution_code = app.exec()
# Restore Mission Scripting file # Restore Mission Scripting file
logging.info("QT App terminated with status code : " + str(qt_execution_code)) logging.info("QT App terminated with status code : " + str(qt_execution_code))

View File

@ -9,7 +9,8 @@ from PySide6.QtCore import (
Qt, Qt,
) )
from PySide6.QtGui import ( from PySide6.QtGui import (
QContextMenuEvent, QAction, QContextMenuEvent,
QAction,
) )
from PySide6.QtWidgets import ( from PySide6.QtWidgets import (
QAbstractItemView, QAbstractItemView,

View File

@ -115,6 +115,7 @@ class CheatSettingsBox(QGroupBox):
def show_transfer_cheat(self) -> bool: def show_transfer_cheat(self) -> bool:
return self.transfer_cheat_checkbox.isChecked() return self.transfer_cheat_checkbox.isChecked()
@property
def enable_runway_state_cheat(self) -> bool: def enable_runway_state_cheat(self) -> bool:
return self.base_runway_state_cheat_checkbox.isChecked() return self.base_runway_state_cheat_checkbox.isChecked()