mirror of
https://github.com/aclist/dztui.git
synced 2026-11-21 17:09:30 +01:00
change: reference dataclass values in enum
This commit is contained in:
1 parent
15d4b71350
commit
598973104c
14 files changed
+275
-257
No files matched your search
@@ -5,6 +5,7 @@ from dzgui.util._json import read_json
|
||||
|
||||
from dzgui.const.enum import Preferences
|
||||
|
||||
|
||||
class ConfigFileError(Exception):
|
||||
pass
|
||||
|
||||
@@ -39,4 +40,4 @@ def get_favorites(path: Path) -> list[str]:
|
||||
|
||||
|
||||
def enum_to_key(enum: Preferences) -> str:
|
||||
return str(enum.dict["key"])
|
||||
return str(enum.key)
|
||||
Reference in new issue
Block a user