We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 700f1ff commit 677c916Copy full SHA for 677c916
arho_feature_template/utils/misc_utils.py
@@ -54,7 +54,7 @@ def check_layer_changes() -> bool:
54
project = QgsProject.instance()
55
layers = project.mapLayers().values()
56
57
- return any(isinstance(layer, QgsVectorLayer) and layer.isModified() for layer in layers)
+ return any(layer.isModified() for layer in layers if isinstance(layer, QgsVectorLayer))
58
59
60
def prompt_commit_changes() -> bool:
0 commit comments