mirror of
https://github.com/clockworkpi/launcher.git
synced 2025-12-12 17:58:50 +01:00
Check item alias
This commit is contained in:
parent
d528510bca
commit
dac49f9df9
@ -72,6 +72,12 @@ class ListItem(object):
|
||||
self._Path = text
|
||||
|
||||
label_text = os.path.basename(text)
|
||||
alias_file = os.path.splitext(text)[0] + ".alias"
|
||||
if os.path.isfile(alias_file):
|
||||
fp = open(alias_file, "r")
|
||||
alias = fp.read()
|
||||
fp.close()
|
||||
label_text = alias
|
||||
|
||||
if self._MyType == ICON_TYPES["DIR"]:
|
||||
l.Init(label_text,self._Fonts["normal"])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user