mirror of
https://github.com/Faraphel/Atlas-Install.git
synced 2025-07-03 19:28:25 +02:00
added is_modified to ModSettings type
This commit is contained in:
parent
47da0f0be4
commit
746b9f91f2
1 changed files with 7 additions and 0 deletions
|
@ -27,6 +27,13 @@ class AbstractModSettings(ABC):
|
|||
"""
|
||||
return self._value if self.enabled else self.default
|
||||
|
||||
@property
|
||||
def is_modified(self) -> bool:
|
||||
"""
|
||||
Return if the settings have been modified compared the the default value
|
||||
"""
|
||||
return self.value == self.default
|
||||
|
||||
@abstractmethod
|
||||
def tkinter_show(self, master: ttk.LabelFrame, enabled_variable: tkinter.BooleanVar) -> None:
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue