Skip to content

Commit

Permalink
fix: disabling composite actions/feedbacks removes contents #3200
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Jan 6, 2025
1 parent 303e7ea commit df6aa66
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion companion/lib/Controls/Fragments/FragmentActionInstance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export class FragmentActionInstance {
}

/**
* Inform the instance of a removed action
* Inform the instance of a removed/disabled action
*/
cleanup() {
// Inform relevant module
Expand Down
3 changes: 1 addition & 2 deletions companion/lib/Controls/Fragments/FragmentActionList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,13 @@ export class FragmentActionList {
}

/**
* Inform the instance of any removed actions
* Inform the instance of any removed/disabled actions
* @access public
*/
cleanup() {
for (const action of this.#actions) {
action.cleanup()
}
this.#actions = []
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export class FragmentFeedbackInstance {
}

/**
* Inform the instance of a removed feedback
* Inform the instance of a removed/disabled feedback
*/
cleanup() {
// Inform relevant module
Expand Down
3 changes: 1 addition & 2 deletions companion/lib/Controls/Fragments/FragmentFeedbackList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,13 @@ export class FragmentFeedbackList {
}

/**
* Inform the instance of any removed feedbacks
* Inform the instance of any removed/disabled feedbacks
* @access public
*/
cleanup() {
for (const feedback of this.#feedbacks) {
feedback.cleanup()
}
this.#feedbacks = []
}

/**
Expand Down

0 comments on commit df6aa66

Please sign in to comment.