Projektspeicher_Abfrage beim Start behoben (3.40/3.44

This commit is contained in:
2026-04-08 13:27:00 +02:00
parent 30b17e0b83
commit f34e4ce458
3 changed files with 99 additions and 0 deletions
+4
View File
@@ -97,6 +97,10 @@ def set_variable(key: str, value: str, scope: str = "project") -> None:
var_name = f"sn_{key}"
if scope == "project":
current_value = get_variable(key, scope="project")
if current_value == value:
return
project = QgsProject.instance()
QgsExpressionContextUtils.setProjectVariable(
project,