define-switch for frozen alert
This commit is contained in:
10
src/tui.cpp
10
src/tui.cpp
@ -112,11 +112,15 @@ void TUI::updateTUI(vector <Drive>* pvecDrives, uint8_t u8SelectedEntry)
|
||||
}
|
||||
break;
|
||||
case Drive::FROZEN:
|
||||
#ifdef FROZEN_ALERT
|
||||
stream << fixed << setprecision(2) << (it->getTaskPercentage());
|
||||
dialog=createFrozenWarning(70, 16, ((stdscrX)-(int)(stdscrX/2)-35),(int)(stdscrY/2)-8, it->getPath(), it->getModelFamily(), it->getModelName(), it->getSerial(), stream.str() + "%");
|
||||
wrefresh(dialog);
|
||||
#ifdef FROZEN_ALERT
|
||||
if(bSelectedEntry)
|
||||
{
|
||||
dialog=createFrozenWarning(70, 16, ((stdscrX)-(int)(stdscrX/2)-20),(int)(stdscrY/2)-8, it->getPath(), it->getModelFamily(), it->getModelName(), it->getSerial(), stream.str() + "%");
|
||||
wrefresh(dialog);
|
||||
}
|
||||
#endif
|
||||
sState = "FROZEN " + stream.str() + "%"; //mark drive as frozen and reached progress
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
Reference in New Issue
Block a user