Compare commits
No commits in common. "6dd4c446881f2cd26d12f3c2029b6dd6532bd6e9" and "5d2094939b0257824b981d7a5dfbd5d4d859a0cb" have entirely different histories.
6dd4c44688
...
5d2094939b
@ -613,7 +613,6 @@ void TUI::vTruncateText(string *psText, uint16_t u16MaxLenght)
|
||||
void TUI::displaySelectedDrive(Drive drive, int stdscrX, int stdscrY)
|
||||
{
|
||||
struct MenuState menustate;
|
||||
static bool dialogIsActive;
|
||||
menustate.bAbort = false;
|
||||
menustate.bConfirmDelete = false;
|
||||
menustate.bConfirmShred = false;
|
||||
@ -660,21 +659,15 @@ void TUI::displaySelectedDrive(Drive drive, int stdscrX, int stdscrY)
|
||||
{
|
||||
dialog = createDialog(40, 10, ((stdscrX) - (int)(stdscrX / 3) - 7) - (int)((stdscrX / 3) + 5) / 2, (int)(stdscrY / 2) - 5, "Confirm SHRED", "Press ENTER for SHRED", "Press ESC for cancel");
|
||||
wrefresh(dialog);
|
||||
dialogIsActive = true;
|
||||
}
|
||||
else if (menustate.bConfirmDelete == true)
|
||||
{
|
||||
dialog = createDialog(40, 10, ((stdscrX) - (int)(stdscrX / 3) - 7) - (int)((stdscrX / 3) + 5) / 2, (int)(stdscrY / 2) - 5, "Confirm DELETE", "Press ENTER for DELETE", "Press ESC for cancel");
|
||||
wrefresh(dialog);
|
||||
dialogIsActive = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (dialogIsActive)
|
||||
{
|
||||
delwin(dialog);
|
||||
dialogIsActive = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user