1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-21 11:27:38 +03:00

config: Change self.in_shutdown to be mangled.

I specifically made set_shutdown() *not* take an argument and only ever
set this true so no-one else can monkey with it, so might as well mangle
it too.
This commit is contained in:
Athanasius 2021-01-12 15:33:01 +00:00
parent 719a58cbe9
commit 28a230b584

@ -117,15 +117,15 @@ class AbstractConfig(abc.ABC):
identifier: str
def __init__(self) -> None:
self.in_shutdown = False # Is the application currently shutting down ?
self.__in_shutdown = False # Is the application currently shutting down ?
self.home = pathlib.Path.home()
def set_shutdown(self):
self.in_shutdown = True
self.__in_shutdown = True
@property
def shutting_down(self) -> bool:
return self.in_shutdown
return self.__in_shutdown
@property
def app_dir_str(self) -> str: