From 6070f82c6b054b0d87cf759360338733dbf65451 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Tue, 22 Nov 2022 16:47:17 +0000 Subject: [PATCH] OUT_EDDN_DO_NOT_DELAY should be OUT_EDDN_DELAY * The old name was OUT_SYS_DELAY. * Yes, this is the inverse of what we want, which is "should we not delay messages", but this is the legacy. --- config/__init__.py | 2 +- prefs.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/__init__.py b/config/__init__.py index 1715cd46..67eae43b 100644 --- a/config/__init__.py +++ b/config/__init__.py @@ -175,7 +175,7 @@ class AbstractConfig(abc.ABC): # OUT_SYS_AUTO = 512 # Now always automatic OUT_MKT_MANUAL = 1024 OUT_EDDN_SEND_NON_STATION = 2048 - OUT_EDDN_DO_NOT_DELAY = 4096 + OUT_EDDN_DELAY = 4096 OUT_STATION_ANY = OUT_EDDN_SEND_STATION_DATA | OUT_MKT_TD | OUT_MKT_CSV app_dir_path: pathlib.Path diff --git a/prefs.py b/prefs.py index 7be52526..376b6c67 100644 --- a/prefs.py +++ b/prefs.py @@ -1222,7 +1222,7 @@ class PreferencesDialog(tk.Toplevel): (config.OUT_MKT_MANUAL if not self.out_auto.get() else 0) + (self.out_ship.get() and config.OUT_SHIP) + (config.get_int('output') & ( - config.OUT_EDDN_SEND_STATION_DATA | config.OUT_EDDN_SEND_NON_STATION | config.OUT_EDDN_DO_NOT_DELAY + config.OUT_EDDN_SEND_STATION_DATA | config.OUT_EDDN_SEND_NON_STATION | config.OUT_EDDN_DELAY )) )