diff options
author | Frederic Culot <calcurse@culot.org> | 2008-12-28 19:41:45 +0000 |
---|---|---|
committer | Frederic Culot <calcurse@culot.org> | 2008-12-28 19:41:45 +0000 |
commit | 8fdd1510c68644184c3df9ba002092a41364b482 (patch) | |
tree | 2291528c007f81a639d0bc3fdc045a6efcbeba06 /src/calcurse.c | |
parent | fe58fe674d5505bb369b6e3864d56989cdcb74f7 (diff) | |
download | calcurse-8fdd1510c68644184c3df9ba002092a41364b482.zip |
Automatic periodic saves implemented
Diffstat (limited to 'src/calcurse.c')
-rwxr-xr-x | src/calcurse.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/calcurse.c b/src/calcurse.c index 67253b9..fb2db0f 100755 --- a/src/calcurse.c +++ b/src/calcurse.c @@ -1,4 +1,4 @@ -/* $calcurse: calcurse.c,v 1.74 2008/12/28 13:13:59 culot Exp $ */ +/* $calcurse: calcurse.c,v 1.75 2008/12/28 19:41:45 culot Exp $ */ /* * Calcurse - text-based organizer @@ -159,7 +159,9 @@ main (int argc, char **argv) wins_slctd_set (CAL); wins_update (); calendar_start_date_thread (); - + if (conf.periodic_save > 0) + io_start_psave_thread (&conf); + /* User input */ for (;;) { @@ -375,7 +377,7 @@ main (int argc, char **argv) break; case KEY_GENERIC_SAVE: - io_save_cal (&conf); + io_save_cal (&conf, IO_SAVE_DISPLAY_BAR); break; case KEY_GENERIC_IMPORT: @@ -492,7 +494,7 @@ main (int argc, char **argv) case KEY_GENERIC_QUIT: if (conf.auto_save) - io_save_cal (&conf); + io_save_cal (&conf, IO_SAVE_DISPLAY_BAR); if (conf.confirm_quit) { |