Addon manager: Fixed wrong marking of addons that begin with same letters

This commit is contained in:
Yorik van Havre
2019-10-09 12:01:10 -03:00
parent 042d4d9eaa
commit 62a7eb4caa

View File

@@ -558,7 +558,7 @@ class CommandAddonManager:
from PySide import QtGui
for i in range(self.dialog.listWorkbenches.count()):
w = self.dialog.listWorkbenches.item(i)
if w.text().startswith(str(repo)):
if (w.text() == str(repo)) or w.text().startswith(str(repo)+" "):
w.setText(str(repo) + str(" ("+translate("AddonsInstaller","Update available")+")"))
w.setForeground(QtGui.QBrush(QtGui.QColor(182,90,0)))
if not repo in self.doUpdate: