Skip to content

Commit ca7bf3d

Browse files
committed
Fix project view id
1 parent 41c29a9 commit ca7bf3d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

core/Objects/Project.vala

+8-2
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,14 @@ public class Objects.Project : Objects.BaseObject {
8282
}
8383

8484
public int child_order { get; set; default = 0; }
85+
86+
string _view_id;
87+
public string view_id {
88+
get {
89+
_view_id ="project-%s".printf (id_string);
90+
return _view_id;
91+
}
92+
}
8593

8694
string _parent_id_string;
8795
public string parent_id_string {
@@ -246,8 +254,6 @@ public class Objects.Project : Objects.BaseObject {
246254
public signal void label_filter_change ();
247255

248256
construct {
249-
view_id ="project-%s".printf (id_string);
250-
251257
deleted.connect (() => {
252258
Idle.add (() => {
253259
Services.Database.get_default ().project_deleted (this);

0 commit comments

Comments
 (0)