mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-01 11:20:19 +02:00
Modification of the confirmation dialog for task config name value
This commit is contained in:
parent
229a3d309c
commit
4f70969306
1 changed files with 6 additions and 1 deletions
|
@ -538,7 +538,12 @@ int handleConfig (std::string &outs)
|
||||||
if (eol == std::string::npos)
|
if (eol == std::string::npos)
|
||||||
throw std::string ("Cannot find EOL after entry '") + name + "'";
|
throw std::string ("Cannot find EOL after entry '") + name + "'";
|
||||||
|
|
||||||
if (confirm (std::string ("Are you sure you want to overwrite the value of '") + name + "' with '" + value + "'?"))
|
if (confirm (std::string ("Are you sure you want to change the value of '")
|
||||||
|
+ name
|
||||||
|
+ "' from '"
|
||||||
|
+ context.config.get(name)
|
||||||
|
+ "' to '"
|
||||||
|
+ value + "'?"))
|
||||||
{
|
{
|
||||||
contents = contents.substr (0, pos)
|
contents = contents.substr (0, pos)
|
||||||
+ name + "=" + value
|
+ name + "=" + value
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue