display empty string if connection type is not known

This commit is contained in:
Hendrik Schutter 2025-06-22 11:57:40 +02:00
parent 36ea3a2bef
commit 1efe3376c1

View File

@ -95,7 +95,7 @@ void TUI::updateTUI(list<Drive> *plistDrives, uint8_t u8SelectedEntry)
string sTemp = it->sTemperatureToText();
string sConnection = (it->connectionType == Drive::USB ? "USB" : it->connectionType == Drive::SATA ? "SATA"
: it->connectionType == Drive::NVME ? "NVME"
: "UNKNOWN");
: "");
bool bSelectedEntry = false;