Simplify storing boolean values after inquiring.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
1627b555ec
commit
71783b2638
|
@ -145,25 +145,11 @@ void Config::generate()
|
|||
|
||||
cout << "Post only titles? [y/n]: ";
|
||||
std::getline(cin, line);
|
||||
if (line[0] == 'y')
|
||||
{
|
||||
profiledata.titles_only = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
profiledata.titles_only = false;
|
||||
}
|
||||
profiledata.titles_only = (line[0] == 'y');
|
||||
|
||||
cout << "Post titles as cw? [y/n]: ";
|
||||
std::getline(cin, line);
|
||||
if (line[0] == 'y')
|
||||
{
|
||||
profiledata.titles_as_cw = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
profiledata.titles_as_cw = false;
|
||||
}
|
||||
profiledata.titles_as_cw = (line[0] == 'y');
|
||||
|
||||
cout << "Append this string to each post: ";
|
||||
std::getline(cin, line);
|
||||
|
|
Loading…
Reference in New Issue
Block a user