change: reference dataclass values in enum

This commit is contained in:
aclist committed 2026-11-10 04:30:40 +09:00
1 parent 15d4b71350
commit 598973104c
14 files changed
+275 -257

No files matched your search

+2 -1
View File
@@ -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)