Close Progressbar before drawing item

pull/23/head
JuanJakobo 2021-06-06 14:44:35 +02:00
parent b8361eecce
commit d9e678ca1d
1 changed files with 2 additions and 1 deletions

View File

@ -170,13 +170,14 @@ void EventHandler::contextMenuHandler(const int index)
if (_nextcloud.removeItem(_tempItemID))
{
updatePBLibrary();
CloseProgressbar();
_listView->drawEntry(_tempItemID);
}
else
{
CloseProgressbar();
Message(ICON_WARNING, "Warning", "Could not delete the file, please try again.", 1200);
}
CloseProgressbar();
break;
}
default: