lucasvanmol / obsidian-latex-ocr

Generate LaTeX equations from images in your clipboard or vault
GNU General Public License v3.0
86 stars 4 forks source link

[BUG] "Python path" setting does not persist if set through file picker #31

Closed SubsequentlySneeds closed 1 month ago

SubsequentlySneeds commented 1 month ago

Describe the bug When using a local model, attempting to locate Python through the file picker replaces the text with the new path, but it is cleared and replaced with the previous value after closing and reopening settings.

To Reproduce Steps to reproduce the behavior:

  1. Go to "Latex OCR" settings
  2. Click on the file picker in "Python path"
  3. Choose a different location from the existing value
  4. Close settings
  5. Reopen settings to see the previous value (attempting to start the server does not use the file-picker value even if settings is not reopened)

Environment I am on:

Using the model:

lucasvanmol commented 1 month ago

Thanks for the fix!