File tree 1 file changed +4
-3
lines changed
arho_feature_template/core
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 13
13
from arho_feature_template .utils .db_utils import get_existing_database_connection_names
14
14
from arho_feature_template .utils .misc_utils import get_active_plan_id , get_layer_by_name , handle_unsaved_changes
15
15
16
+ LAYER_NAME_PLAN = "Kaava"
17
+
16
18
17
19
class PlanManager :
18
20
def __init__ (self ):
@@ -24,7 +26,7 @@ def add_new_plan(self):
24
26
if not handle_unsaved_changes ():
25
27
return
26
28
27
- plan_layer = get_layer_by_name ("Kaava" )
29
+ plan_layer = get_layer_by_name (LAYER_NAME_PLAN )
28
30
self .clear_all_filters ()
29
31
30
32
if not plan_layer :
@@ -41,8 +43,7 @@ def add_new_plan(self):
41
43
42
44
def _feature_added (self ):
43
45
"""Callback for when a new feature is added to the Kaava layer."""
44
-
45
- plan_layer = get_layer_by_name ("Kaava" )
46
+ plan_layer = get_layer_by_name (LAYER_NAME_PLAN )
46
47
if not plan_layer :
47
48
return
48
49
You can’t perform that action at this time.
0 commit comments