From d9e678ca1dcdb5b3a7edbfa0dacd6c1459a326c9 Mon Sep 17 00:00:00 2001 From: JuanJakobo <34421964+JuanJakobo@users.noreply.github.com> Date: Sun, 6 Jun 2021 14:44:35 +0200 Subject: [PATCH] Close Progressbar before drawing item --- src/handler/eventHandler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/handler/eventHandler.cpp b/src/handler/eventHandler.cpp index ae33c0b..4f2ea61 100644 --- a/src/handler/eventHandler.cpp +++ b/src/handler/eventHandler.cpp @@ -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: