Add documents feature
This commit is contained in:
parent
23b6ce62a3
commit
422411f12e
18 changed files with 1521 additions and 216 deletions
|
|
@ -44,6 +44,7 @@ def load_db_config() -> DBConfig:
|
|||
tags = s.value("ui/tags", True, type=bool)
|
||||
time_log = s.value("ui/time_log", True, type=bool)
|
||||
reminders = s.value("ui/reminders", True, type=bool)
|
||||
documents = s.value("ui/documents", True, type=bool)
|
||||
locale = s.value("ui/locale", "en", type=str)
|
||||
font_size = s.value("ui/font_size", 11, type=int)
|
||||
return DBConfig(
|
||||
|
|
@ -55,6 +56,7 @@ def load_db_config() -> DBConfig:
|
|||
tags=tags,
|
||||
time_log=time_log,
|
||||
reminders=reminders,
|
||||
documents=documents,
|
||||
locale=locale,
|
||||
font_size=font_size,
|
||||
)
|
||||
|
|
@ -70,5 +72,6 @@ def save_db_config(cfg: DBConfig) -> None:
|
|||
s.setValue("ui/tags", str(cfg.tags))
|
||||
s.setValue("ui/time_log", str(cfg.time_log))
|
||||
s.setValue("ui/reminders", str(cfg.reminders))
|
||||
s.setValue("ui/documents", str(cfg.documents))
|
||||
s.setValue("ui/locale", str(cfg.locale))
|
||||
s.setValue("ui/font_size", str(cfg.font_size))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue