File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -122,11 +122,7 @@ public class Gala.GesturePropertyTransition : Object {
122122 if (transition == null ) {
123123 finish (cancel_action);
124124 } else {
125- transition. stopped. connect ((is_finished) = > {
126- if (is_finished) {
127- finish (cancel_action);
128- }
129- });
125+ transition. stopped. connect ((is_finished) = > finish (cancel_action, is_finished));
130126 }
131127 };
132128
@@ -153,8 +149,8 @@ public class Gala.GesturePropertyTransition : Object {
153149 }
154150 }
155151
156- private void finish (bool cancel_action) {
157- if (done_callback != null ) {
152+ private void finish (bool cancel_action, bool callback = true ) {
153+ if (callback && done_callback != null ) {
158154 done_callback (cancel_action);
159155 }
160156
You can’t perform that action at this time.
0 commit comments