Skip to content

Commit

Permalink
Make sure WA updater config is correct after moving CB config file
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Oct 26, 2020
1 parent 3752b50 commit bd23ef6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CurseBreaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -693,6 +693,8 @@ def c_show(self, args):
def c_wago_update(self, _, verbose=True):
if os.path.isdir(Path('Interface/AddOns/WeakAuras')) or os.path.isdir(Path('Interface/AddOns/Plater')):
accounts = self.core.detect_accounts()
if self.core.config['WAAccountName'] != '' and self.core.config['WAAccountName'] not in accounts:
self.core.config['WAAccountName'] = ''
if len(accounts) == 0:
return
elif len(accounts) > 1 and self.core.config['WAAccountName'] == '':
Expand Down

0 comments on commit bd23ef6

Please sign in to comment.