From b45e105202f1c3a3fc96409e4416deff4916aaac Mon Sep 17 00:00:00 2001 From: Ad5001 Date: Fri, 22 Apr 2022 15:14:52 +0200 Subject: [PATCH] Disabling LaTeX popup if LaTeX support is disabled. --- .gitignore | 2 ++ LogarithmPlotter/logarithmplotter.py | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 1a8dac4..11ffff4 100644 --- a/.gitignore +++ b/.gitignore @@ -12,8 +12,10 @@ linux/flatpak/.flatpak-builder **/**.jsc **/**.pyc **/**.qm +**/**.log *.jsc *.qmlc +*.log .DS_Store **/.DS_Store **/__pycache__/ diff --git a/LogarithmPlotter/logarithmplotter.py b/LogarithmPlotter/logarithmplotter.py index 70073ef..3a8051c 100644 --- a/LogarithmPlotter/logarithmplotter.py +++ b/LogarithmPlotter/logarithmplotter.py @@ -135,7 +135,9 @@ def run(): if platform == "darwin": macOSFileOpenHandler.init_graphics(engine.rootObjects()[0]) - latex.check_latex_install() + # Check for LaTeX installation if LaTeX support is enabled + if config.getSetting("enable_latex"): + latex.check_latex_install() # Check for updates if config.getSetting("check_for_updates"):