Skip to content

Commit

Permalink
Revert reverted commit to make app combo working, need checks
Browse files Browse the repository at this point in the history
  • Loading branch information
euskalhenriko committed Jan 24, 2024
1 parent 3bda9d9 commit acb4e0a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -675,16 +675,16 @@ public static class GroupHandler extends KlabWidgetActionExecutor {

private String appId;
// add to this
private ViewComponent group;
// private ViewComponent group;
// keep this for resetting
private ViewComponent originalGroup;

public GroupHandler(IActorIdentity<KlabMessage> identity, String appId, IKActorsBehavior.Scope scope,
ActorRef<KlabMessage> sender, String callId) {
super(identity, null, scope, sender, callId);
this.appId = appId;
this.group = copyComponent(scope.getViewScope().getCurrentComponent());
this.originalGroup = copyComponent(this.group);
this.component = copyComponent(scope.getViewScope().getCurrentComponent());
this.originalGroup = copyComponent(this.component);
}

@Override
Expand All @@ -696,7 +696,7 @@ protected ViewComponent setComponent(KActorsMessage message, IKActorsBehavior.Sc
arg = ((KActorsValue) arg).evaluate(scope, identity, false);
}
if (arg instanceof Constructor) {
this.sender.tell(new AddComponentToGroup(this.group, ((Constructor) arg).getComponent(),
this.sender.tell(new AddComponentToGroup(this.component, ((Constructor) arg).getComponent(),
((Constructor) arg).getArguments(), scope));
}
} else if ("remove".equals(message.getMessage())) {
Expand Down

0 comments on commit acb4e0a

Please sign in to comment.