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 committed 2021-04-01 14:45:48 +01:00
1 parent 719a58cbe9
commit 28a230b584
1 file changed
+3 -3
+3 -3
View File
@@ -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: