Changeset bd9214e000ef…
Parent 7558ebba2139…
by
Changes to one file · Browse files at bd9214e000ef Showing diff from parent 7558ebba2139 Diff from another changeset...
@@ -13,7 +13,6 @@ from tortoisehg.util import hglib, shlib
from tortoisehg.hgqt.i18n import _
from tortoisehg.hgqt import qtlib, status, cmdui
-from tortoisehg.hgqt import settings
from PyQt4.QtCore import *
from PyQt4.QtGui import *
@@ -98,7 +97,7 @@ layout.addWidget(bb)
self.bb = bb
- if self.command == 'add' and settings.hasExtension('kbfiles'):
+ if self.command == 'add' and 'kbfiles' in self.repo.extensions():
self.addBfilesButton = QPushButton(_("Add &Bfiles"))
self.addBfilesButton.clicked.connect(self.addBfiles)
bb.addButton(self.addBfilesButton, BB.ActionRole)
|
Loading...