From 5cb3c74da9ac187f96db8d926c0571474bcfff87 Mon Sep 17 00:00:00 2001 From: Stephan Erb Date: Sun, 27 Dec 2009 17:50:06 +0100 Subject: [PATCH] Only perform the longish check for latex support if the user has enabled latex in ACE. --- src/common/gajim.py | 2 +- src/features_window.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/common/gajim.py b/src/common/gajim.py index cbe612b5a..a0eab9d84 100644 --- a/src/common/gajim.py +++ b/src/common/gajim.py @@ -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: diff --git a/src/features_window.py b/src/features_window.py index d784fc50a..b806eed88 100644 --- a/src/features_window.py +++ b/src/features_window.py @@ -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