mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-26 06:37:20 +02:00
CmdSync: Color only used for tty
This commit is contained in:
parent
d8124d1aad
commit
271e28f609
2 changed files with 8 additions and 3 deletions
|
@ -182,8 +182,13 @@ int CmdSync::execute (std::string& output)
|
|||
std::string code = response.get ("code");
|
||||
if (code == "200")
|
||||
{
|
||||
Color colorAdded (context.config.get ("color.sync.added"));
|
||||
Color colorChanged (context.config.get ("color.sync.changed"));
|
||||
Color colorAdded;
|
||||
Color colorChanged;
|
||||
if (context.color ())
|
||||
{
|
||||
colorAdded = Color (context.config.get ("color.sync.added"));
|
||||
colorChanged = Color (context.config.get ("color.sync.changed"));
|
||||
}
|
||||
|
||||
int download_count = 0;
|
||||
payload = response.getPayload ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue