Minor change for release in information page
This commit is contained in:
parent
81e09a4d56
commit
0159b89194
@ -97,7 +97,7 @@ class SystemTrayIcon(QtGui.QSystemTrayIcon):
|
||||
v = open(path, 'r')
|
||||
version = v.read()
|
||||
a = self.FormattaInfo()
|
||||
version = "<ul><li>"+_("<font color=\"green\">open</font>mamba version:")+" <i>"+a[0]+"</i><li>"+_("Platform: ")+"<i>"+a[1]+"</i></ul>"
|
||||
version = "<ul><li>"+_("<font color=\"green\">open</font>mamba release:")+" <i>"+a[0]+"</i><li>"+_("Platform: ")+"<i>"+a[1]+"</i></ul>"
|
||||
v.close()
|
||||
else:
|
||||
version = "Error: Unable to find /etc/openmamba-release"
|
||||
@ -110,9 +110,9 @@ class SystemTrayIcon(QtGui.QSystemTrayIcon):
|
||||
|
||||
def FormattaInfo(self):
|
||||
result = []
|
||||
v = version
|
||||
v = version
|
||||
#result[0]=versione
|
||||
result.append(v[ v.find("openmamba ")+10 : v.find(" for") ] + " " + v[ v.find("(") : v.find(")")+1 ])
|
||||
result.append(v[ v.find("openmamba release ")+18 : v.find(" for") ] + " " + v[ v.find("(") : v.find(")")+1 ])
|
||||
#result[1] = piattaforma
|
||||
result.append(v[ v.find("for")+4 : v.find("(") ])
|
||||
return result
|
||||
|
Loading…
Reference in New Issue
Block a user