common: Init sync property

This commit is contained in:
Elias Projahn 2020-07-17 20:29:01 +02:00
parent 3f5743e2f5
commit 2e4f69a178
5 changed files with 6 additions and 0 deletions

View file

@ -26,6 +26,7 @@ class _EnsembleEditorState extends State<EnsembleEditor> {
if (widget.ensemble != null) {
nameController.text = widget.ensemble.name;
_sync = widget.ensemble.sync;
}
}

View file

@ -26,6 +26,7 @@ class _InstrumentEditorState extends State<InstrumentEditor> {
if (widget.instrument != null) {
nameController.text = widget.instrument.name;
_sync = widget.instrument.sync;
}
}

View file

@ -28,6 +28,7 @@ class _PersonEditorState extends State<PersonEditor> {
if (widget.person != null) {
firstNameController.text = widget.person.firstName;
lastNameController.text = widget.person.lastName;
_sync = widget.person.sync;
}
}

View file

@ -52,6 +52,7 @@ class _RecordingEditorState extends State<RecordingEditor> {
setState(() {
this._workInfo = _workInfo;
this._performanceInfos = _performanceInfos;
_sync = widget.recordingInfo.recording.sync;
});
}

View file

@ -201,6 +201,8 @@ class _WorkEditorState extends State<WorkEditor> {
instruments: List.from(partInfo.instruments),
));
}
_sync = widget.workInfo.work.sync;
}
}