mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-01-04 03:49:47 -06:00
fix(touchbar): errors refreshing touchbar if parent is missing
This commit is contained in:
@@ -65,7 +65,9 @@ export default class EditableCodeTypeWidget extends AbstractCodeTypeWidget {
|
||||
|
||||
this.show();
|
||||
|
||||
this.triggerCommand("refreshTouchBar");
|
||||
if (this.parent) {
|
||||
this.triggerCommand("refreshTouchBar");
|
||||
}
|
||||
}
|
||||
|
||||
getData() {
|
||||
|
||||
Reference in New Issue
Block a user