Bugfix: only invert if listitem ist clicked

pull/23/head
JuanJakobo 2021-06-07 07:27:07 +02:00
parent da86eea088
commit 9781c20838
1 changed files with 2 additions and 1 deletions

View File

@ -220,9 +220,10 @@ int EventHandler::pointerHandler(const int type, const int par1, const int par2)
else if (_listView != nullptr)
{
_tempItemID = _listView->listClicked(par1, par2);
_listView->invertEntryColor(_tempItemID);
if (_tempItemID != -1)
{
_listView->invertEntryColor(_tempItemID);
if (_nextcloud.getItems().at(_tempItemID).getType() == Itemtype::IFOLDER)
{
openFolder();