🐛 Make sure to reconfigure timelapse on snapshot change

Closes #4789
This commit is contained in:
Gina Häußge committed 2023-04-11 18:49:28 +02:00
1 parent 0f922283f8
commit 16c8647e21
1 file changed
+4
+4
View File
@@ -15,6 +15,7 @@ from octoprint.server import pluginManager, printer, userManager
from octoprint.server.api import NO_CONTENT, api
from octoprint.server.util.flask import no_firstrun_access, with_revalidation_checking
from octoprint.settings import settings, valid_boolean_trues
from octoprint.timelapse import configure_timelapse
from octoprint.webcams import (
get_default_webcam,
get_snapshot_webcam,
@@ -656,6 +657,9 @@ def _saveSettings(data):
if "snapshotWebcam" in data["webcam"]:
s.set(["webcam", "snapshotWebcam"], data["webcam"]["snapshotWebcam"])
# timelapse needs to be reconfigured now since it depends on the current snapshot webcam
configure_timelapse()
if "feature" in data:
if "temperatureGraph" in data["feature"]:
s.setBoolean(