1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-14 08:17:13 +03:00

Fix logic for 'Update' button visual state wrt CQC

This was wrong since 291fbf2908e0f7419769a7727ee0a79cf58a9342 due to the
check saying "only active if in CQC", when it needed to be "only active
NOT in CQC, along with these other conditions".
This commit is contained in:
Athanasius 2021-08-31 15:03:41 +01:00
parent 4482da007f
commit 018ee49a0d
No known key found for this signature in database
GPG Key ID: AE3E527847057C7D

View File

@ -1468,7 +1468,7 @@ class AppWindow(object):
self.button['text'] = self.theme_button['text'] = _('Update') # LANG: Update button in main window
self.button['state'] = self.theme_button['state'] = (monitor.cmdr and
monitor.mode and
monitor.mode == 'CQC' and
monitor.mode != 'CQC' and
not monitor.state['Captain'] and
monitor.system and
tk.NORMAL or tk.DISABLED)