Move function validate applications
This commit is contained in:
parent
a7501bad5f
commit
4c1183102b
Binary file not shown.
|
@ -120,24 +120,6 @@ class ZAZLaTex2SVG(unohelper.Base, XJobExecutor):
|
|||
return
|
||||
|
||||
def _app(self):
|
||||
result = self._msg1
|
||||
if app.paths.exists_app('pdflatex'):
|
||||
result = self._msg2
|
||||
msg = f'pdflatex = {result}\n'
|
||||
|
||||
result = self._msg1
|
||||
if app.paths.exists_app('pdfcrop'):
|
||||
result = self._msg2
|
||||
msg += f'pdfcrop = {result}\n'
|
||||
|
||||
result = self._msg1
|
||||
if app.paths.exists_app('pdf2svg'):
|
||||
result = self._msg2
|
||||
msg += f'pdf2svg = {result}\n\n'
|
||||
|
||||
msg += _('Not used, if not found some application.')
|
||||
|
||||
app.msgbox(msg)
|
||||
return
|
||||
|
||||
def _from_selection(self):
|
||||
|
|
|
@ -18,7 +18,27 @@ def from_dialog():
|
|||
|
||||
|
||||
def validate_app():
|
||||
app.debug('Validate app')
|
||||
msg1 = _('Not found')
|
||||
msg2 = _('Found')
|
||||
|
||||
result = msg1
|
||||
if app.paths.exists_app('pdflatex'):
|
||||
result = msg2
|
||||
msg = f'pdflatex = {result}\n'
|
||||
|
||||
result = msg1
|
||||
if app.paths.exists_app('pdfcrop'):
|
||||
result = msg2
|
||||
msg += f'pdfcrop = {result}\n'
|
||||
|
||||
result = msg1
|
||||
if app.paths.exists_app('pdf2svg'):
|
||||
result = msg2
|
||||
msg += f'pdf2svg = {result}\n\n'
|
||||
|
||||
msg += _('Not used, if not found some application.')
|
||||
|
||||
app.msgbox(msg)
|
||||
return
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue