diff --git a/EDMarketConnector.py b/EDMarketConnector.py index 21edf222..95426754 100755 --- a/EDMarketConnector.py +++ b/EDMarketConnector.py @@ -155,6 +155,12 @@ if __name__ == '__main__': # noqa: C901 '--eddn-url', help='Specify an alternate EDDN upload URL', ) + + parser.add_argument( + '--eddn-tracking-ui', + help='Have EDDN plugin show what it is tracking', + action='store_true', + ) ########################################################################### args = parser.parse_args() diff --git a/config.py b/config.py index 7a51547a..05cacd89 100644 --- a/config.py +++ b/config.py @@ -208,6 +208,7 @@ class AbstractConfig(abc.ABC): __auth_force_localserver = False # Should we use localhost for auth callback ? __auth_force_edmc_protocol = False # Should we force edmc:// protocol ? __eddn_url = None # Non-default EDDN URL + __eddn_tracking_ui = False # Show EDDN tracking UI ? def __init__(self) -> None: self.home_path = pathlib.Path.home() @@ -264,6 +265,19 @@ class AbstractConfig(abc.ABC): """ return self.__eddn_url + def set_eddn_tracking_ui(self): + """Activate EDDN tracking UI.""" + self.__eddn_tracking_ui = True + + @property + def eddn_tracking_ui(self) -> bool: + """ + Determine if the EDDN tracking UI be shown. + + :return: bool - Should tracking UI be active? + """ + return self.__eddn_tracking_ui + @property def app_dir(self) -> str: """Return a string version of app_dir."""