Ref T773, allow to clear/write log. from interpolation UI via buttons

This commit is contained in:
Klaus Basan
2020-02-14 00:41:31 +01:00
committed by Mat Sutcliffe
parent 33b3cd5461
commit 70e08fdf8b
4 changed files with 80 additions and 18 deletions

View File

@@ -418,14 +418,14 @@ namespace BlackCore
const QString part2 = parser.part(2).toLower();
if (part2 == "off" || part2 == "false")
{
CStatusMessage(this).info(u"Disabled interpolation logging");
CLogMessage(this).info(u"Disabled interpolation logging");
this->clearInterpolationLogCallsigns();
return true;
}
if (part2 == "clear" || part2 == "clr")
{
m_interpolationLogger.clearLog();
CStatusMessage(this).info(u"Cleared interpolation logging");
CLogMessage(this).info(u"Cleared interpolation logging");
this->clearInterpolationLogCallsigns();
return true;
}
@@ -436,7 +436,7 @@ namespace BlackCore
const int max = parser.part(3).toInt(&ok);
if (!ok) { return false; }
m_interpolationLogger.setMaxSituations(max);
CStatusMessage(this).info(u"Max.situations logged: %1") << max;
CLogMessage(this).info(u"Max.situations logged: %1") << max;
return true;
}
if (part2 == "write" || part2 == "save")