Disable add-on config button when no config present
https://anki.tenderapp.com/discussions/ankidesktop/33602-disable-the-config-button-when-an-add-on-is-highlighted-that-does-not-have-any-config
This commit is contained in:
parent
380d59f775
commit
199d9dcb44
@ -496,7 +496,9 @@ class AddonsDialog(QDialog):
|
||||
addon = self.addons[row_int][1]
|
||||
except IndexError:
|
||||
addon = ''
|
||||
self.form.viewPage.setEnabled(bool (re.match(r"^\d+$", addon)))
|
||||
self.form.viewPage.setEnabled(bool(re.match(r"^\d+$", addon)))
|
||||
self.form.config.setEnabled(bool(self.mgr.getConfig(addon) or
|
||||
self.mgr.configAction(addon)))
|
||||
|
||||
def selectedAddons(self):
|
||||
idxs = [x.row() for x in self.form.addonList.selectedIndexes()]
|
||||
|
Loading…
Reference in New Issue
Block a user