Disable API access if Journal says we're in beta

This commit is contained in:
Jonathan Harris committed 2016-09-24 00:12:20 +01:00
1 parent 15eeda2309
commit b18589f7bf
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -335,7 +335,7 @@ class AppWindow:
auto_update = not event
play_sound = (auto_update or int(event.type) == self.EVENT_VIRTUAL) and not config.getint('hotkey_mute')
if monitor.cmdr and not monitor.mode:
if (monitor.cmdr and not monitor.mode) or monitor.is_beta:
return # In CQC - do nothing
if not retrying:
+2 -2
View File
@@ -315,12 +315,12 @@ class PreferencesDialog(tk.Toplevel):
logvalid = logdir and exists(logdir)
local = self.out_bpc.get() or self.out_td.get() or self.out_csv.get() or self.out_ship_eds.get() or self.out_ship_coriolis.get()
self.out_auto_button['state'] = local and logvalid and tk.NORMAL or tk.DISABLED
self.out_auto_button['state'] = local and logvalid and not monitor.is_beta and tk.NORMAL or tk.DISABLED
self.outdir_label['state'] = local and tk.NORMAL or tk.DISABLED
self.outbutton['state'] = local and tk.NORMAL or tk.DISABLED
self.outdir['state'] = local and 'readonly' or tk.DISABLED
self.eddn_auto_button['state'] = self.eddn_station.get() and logvalid and tk.NORMAL or tk.DISABLED
self.eddn_auto_button['state'] = self.eddn_station.get() and logvalid and not monitor.is_beta and tk.NORMAL or tk.DISABLED
self.eddn_system_button['state']= logvalid and tk.NORMAL or tk.DISABLED
self.eddn_delay_button['state'] = logvalid and eddn.replayfile and self.eddn_system.get() and tk.NORMAL or tk.DISABLED