Disable Air Wing and Transfer buttons if no game is enabled (#3488)

This PR addresses #3481 by disabling the Air Wing and Transfer buttons
if no game is loaded.
This commit is contained in:
zhexu14 2025-02-22 17:26:05 +11:00 committed by GitHub
parent 60c7990d63
commit 51e46653b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -242,6 +242,8 @@ class QLiberationWindow(QMainWindow):
self.openSettingsAction.setVisible(enabled) self.openSettingsAction.setVisible(enabled)
self.openStatsAction.setVisible(enabled) self.openStatsAction.setVisible(enabled)
self.openNotesAction.setVisible(enabled) self.openNotesAction.setVisible(enabled)
self.openAirWingAction.setVisible(enabled)
self.openTransfersAction.setVisible(enabled)
# Also Disable SaveAction to prevent Keyboard Shortcut # Also Disable SaveAction to prevent Keyboard Shortcut
self.saveGameAction.setEnabled(enabled) self.saveGameAction.setEnabled(enabled)