1
0
Fork 0

Automatically use first letter of instance as initial abbreviation.

This commit is contained in:
Andrew Tomaka 2011-09-23 01:44:32 -04:00
parent cb2d4649ce
commit 8f02f9760e

View file

@ -249,7 +249,7 @@ function core:DrawInstanceOptions()
if core:VerifyInstance(value) then
print('Adding',value)
db.profile.instances[value] = { }
db.profile.instances[value].abbreviation = ''
db.profile.instances[value].abbreviation = string.sub(value,0,1)
db.profile.instances[value].enable = true
db.profile.instances[value].removed = false
core:DrawInstanceOptions()