mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-19 00:04:08 +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:
parent
719a58cbe9
commit
28a230b584
@ -117,15 +117,15 @@ class AbstractConfig(abc.ABC):
|
|||||||
identifier: str
|
identifier: str
|
||||||
|
|
||||||
def __init__(self) -> None:
|
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()
|
self.home = pathlib.Path.home()
|
||||||
|
|
||||||
def set_shutdown(self):
|
def set_shutdown(self):
|
||||||
self.in_shutdown = True
|
self.__in_shutdown = True
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def shutting_down(self) -> bool:
|
def shutting_down(self) -> bool:
|
||||||
return self.in_shutdown
|
return self.__in_shutdown
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def app_dir_str(self) -> str:
|
def app_dir_str(self) -> str:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user