mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Database: Now tracks the need to write data with ::_dirty
This commit is contained in:
parent
2cd945e440
commit
8c74b0e1e9
2 changed files with 17 additions and 0 deletions
|
@ -37,6 +37,7 @@ class Database
|
|||
public:
|
||||
Database () = default;
|
||||
void initialize (const std::string&);
|
||||
void commit ();
|
||||
|
||||
Interval getLatestInterval () const;
|
||||
|
||||
|
@ -53,6 +54,7 @@ private:
|
|||
std::string _location {"~/.timewarrior/data"};
|
||||
std::string _current {};
|
||||
std::vector <Datafile> _files {};
|
||||
bool _dirty {false};
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue