From d6478c2fed95b48a84ec12b922d744c32233dd5b Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 13 Apr 2025 22:08:26 +0300 Subject: [PATCH] fix(touchbar): errors refreshing touchbar if parent is missing --- src/public/app/widgets/type_widgets/editable_code.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/public/app/widgets/type_widgets/editable_code.ts b/src/public/app/widgets/type_widgets/editable_code.ts index 7b0891f3d..a17364502 100644 --- a/src/public/app/widgets/type_widgets/editable_code.ts +++ b/src/public/app/widgets/type_widgets/editable_code.ts @@ -65,7 +65,9 @@ export default class EditableCodeTypeWidget extends AbstractCodeTypeWidget { this.show(); - this.triggerCommand("refreshTouchBar"); + if (this.parent) { + this.triggerCommand("refreshTouchBar"); + } } getData() {