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:
parent
4482da007f
commit
018ee49a0d
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user