Mercurial > wow > skeletonkey
comparison SkeletonKey/BindingsFrame.lua @ 65:556e075983a6
check for valid spell name when updating talent data
author | Nenue |
---|---|
date | Sat, 10 Sep 2016 19:08:19 -0400 |
parents | 2409fe9b81e1 |
children |
comparison
equal
deleted
inserted
replaced
64:178d489f387c | 65:556e075983a6 |
---|---|
415 if module.ui then | 415 if module.ui then |
416 module.ui(force) | 416 module.ui(force) |
417 end | 417 end |
418 end | 418 end |
419 | 419 |
420 if not kb.db.showUI then | 420 if InCombatLockdown() or not kb.db.showUI then |
421 print('---end of refresh') | 421 print('---end of refresh') |
422 return | 422 return |
423 end | 423 end |
424 if not kb.loaded then | 424 if not kb.loaded then |
425 KeyBinder_Initialize() | 425 KeyBinder_Initialize() |
616 if talentInfo then | 616 if talentInfo then |
617 profile.bindings[self.binding] = nil | 617 profile.bindings[self.binding] = nil |
618 else | 618 else |
619 profile.bindings[self.binding] = self.command | 619 profile.bindings[self.binding] = self.command |
620 end | 620 end |
621 profile.talents[talentName] = talentInfo | 621 if talentName then |
622 profile.talents[talentName] = talentInfo | |
623 end | |
622 else | 624 else |
623 profile.bindings[self.binding] = nil | 625 profile.bindings[self.binding] = nil |
624 profile.bound[self.command] = nil | 626 profile.bound[self.command] = nil |
625 profile.talents[talentName] = nil | 627 if talentName then |
628 profile.talents[talentName] = nil | |
629 end | |
626 end | 630 end |
627 end | 631 end |
628 | 632 |
629 | 633 |
630 kb:print(L('BINDING_ASSIGNED', self.binding, self.actionName, kb.currentHeader)) | 634 kb:print(L('BINDING_ASSIGNED', self.binding, self.actionName, kb.currentHeader)) |