Only perform the longish check for latex support if the user has enabled latex in ACE.

This commit is contained in:
Stephan Erb 2009-12-27 17:50:06 +01:00
parent cc9390c063
commit 5cb3c74da9
2 changed files with 3 additions and 2 deletions

View File

@ -183,7 +183,7 @@ else:
HAVE_GPG = False
import latex
HAVE_LATEX = latex.check_for_latex_support()
HAVE_LATEX = config.get('use_latex') and latex.check_for_latex_support()
HAVE_INDICATOR = True
try:

View File

@ -243,7 +243,8 @@ class FeaturesWindow:
return sleepy.SUPPORTED
def latex_available(self):
return gajim.HAVE_LATEX
from common import latex
return latex.check_for_latex_support()
def pycrypto_available(self):
return gajim.HAVE_PYCRYPTO