.cosmetics

This commit is contained in:
Mirek Fidler 2025-11-15 09:10:19 +01:00
parent 444e1ccab3
commit 9bb84f125f
2 changed files with 4 additions and 2 deletions

View file

@ -227,7 +227,7 @@ float Value::GetOtherFloat() const
bool Value::GetOtherBool() const
{
if(IsNull()) return Null;
if(IsNull()) return false;
return data.IsSpecial(DOUBLE_V) ? (bool)GetSmall<double>() :
data.IsSpecial(INT_V) ? (bool)GetSmall<int>() :
data.IsSpecial(FLOAT_V) ? (float)GetSmall<float>() :

View file

@ -57,7 +57,9 @@ void Ide::EndBuilding(bool ok)
if(!errors.IsEmpty())
ok = false;
PutConsole("");
PutConsole((ok ? "OK. " : "There were errors. ") + GetPrintTime(build_time));
Time tm = GetSysTime();
PutConsole((ok ? "OK. " : "There were errors. ") + GetPrintTime(build_time)
+ Format(" (completed at %02d:%02d)", (int)tm.hour, (int)tm.minute));
SetIdeState(EDITING);
if(GetTopWindow()->IsOpen()) {
if(ok)