Automatically use first letter of instance as initial abbreviation.
This commit is contained in:
parent
cb2d4649ce
commit
8f02f9760e
1 changed files with 1 additions and 1 deletions
|
@ -249,7 +249,7 @@ function core:DrawInstanceOptions()
|
||||||
if core:VerifyInstance(value) then
|
if core:VerifyInstance(value) then
|
||||||
print('Adding',value)
|
print('Adding',value)
|
||||||
db.profile.instances[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].enable = true
|
||||||
db.profile.instances[value].removed = false
|
db.profile.instances[value].removed = false
|
||||||
core:DrawInstanceOptions()
|
core:DrawInstanceOptions()
|
||||||
|
|
Loading…
Reference in a new issue