anufrievroman / calcure

Modern TUI calendar and task manager with minimal and customizable UI.
https://anufrievroman.gitbook.io/calcure
MIT License
1.51k stars 43 forks source link

Calcure always wants to read .abook/addressbook #71

Closed jose1711 closed 9 months ago

jose1711 commented 9 months ago

The config option birthdays_from_abook only controls whether birthdays are displayed in the calendar. Regardless the value of setting the addressbook file is always attempted to read.

This also means if the file does not exist each time calcure is executed a warning is generated in the log file:

[WARNING] Couldn't load birthdays. File. /home/user/.abook/addressbook does not exist.

In addition to that calcure shows somewhat meaningless Incorrect input. text in the status line.

anufrievroman commented 9 months ago

I see, yes, it's weird. Fixed it in commit e8233e2f4b9cc305609e408e97100969ac65e452 Now if you turn it off in the config, no error occurs. The error feedback to the user is still under construction, which causes the generic Incorrect input line, but this is a separate problem.