From 16c8647e218ede054f1144d2d16d21790bd7a49d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 11 Apr 2023 18:49:28 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Make=20sure=20to=20reconfigure?= =?UTF-8?q?=20timelapse=20on=20snapshot=20change?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #4789 --- src/octoprint/server/api/settings.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/octoprint/server/api/settings.py b/src/octoprint/server/api/settings.py index 4139a3de7..5bb611bb5 100644 --- a/src/octoprint/server/api/settings.py +++ b/src/octoprint/server/api/settings.py @@ -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(