changeset cae1b438f025 in /home/hg/repos/gajim

details:http://hg.gajim.org/gajim?cmd=changeset;node=cae1b438f025
description: Only perform the longish check for latex support if the user has 
enabled latex in ACE.

diffstat:

 src/common/gajim.py    |  2 +-
 src/features_window.py |  3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r a7bc4afde6a1 -r cae1b438f025 src/common/gajim.py
--- a/src/common/gajim.py       Sun Dec 27 17:40:10 2009 +0100
+++ b/src/common/gajim.py       Sun Dec 27 17:50:06 2009 +0100
@@ -183,7 +183,7 @@
                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 -r a7bc4afde6a1 -r cae1b438f025 src/features_window.py
--- a/src/features_window.py    Sun Dec 27 17:40:10 2009 +0100
+++ b/src/features_window.py    Sun Dec 27 17:50:06 2009 +0100
@@ -243,7 +243,8 @@
                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
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to