Projektspeicher_Abfrage beim Start behoben (3.40/3.44
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user