PhotoboothProject / photobooth

OpenSource Photobooth Webinterface
https://photoboothproject.github.io
MIT License
270 stars 58 forks source link

[BUG]: Admin panel "Command to generate a live preview" is not persisted in UI #786

Closed limbusdev closed 4 days ago

limbusdev commented 4 days ago

Describe the bug

When entering a command for the preview image, it is not persisted in the UI. It is actually saved, but since the UI is cleared for that field, the entered value is deleted the next time you click "save".

Steps to reproduce the behavior

  1. open Admin Panel
  2. Set it to "Expert"
  3. scroll down to "Commands"
  4. enter something into "Command to generate a live preview"
  5. click save
  6. look into the config file - the entered command is there
  7. look into UI - the command is not there
  8. click save again - the command is gone from UI and config file

Expected behavior

The command can be seen in the UI after clicking save.

Photobooth Version

4.99.0

Browser and browser version

Chromium 125.0.6422.133

Operating System

Raspberry OS with desktop "bookworm"

limbusdev commented 28 minutes ago

That was quick. Nice.