mirror of
https://github.com/johrpan/musicus_mobile.git
synced 2025-10-26 02:37:25 +01:00
common: Init sync property
This commit is contained in:
parent
3f5743e2f5
commit
2e4f69a178
5 changed files with 6 additions and 0 deletions
|
|
@ -26,6 +26,7 @@ class _EnsembleEditorState extends State<EnsembleEditor> {
|
||||||
|
|
||||||
if (widget.ensemble != null) {
|
if (widget.ensemble != null) {
|
||||||
nameController.text = widget.ensemble.name;
|
nameController.text = widget.ensemble.name;
|
||||||
|
_sync = widget.ensemble.sync;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@ class _InstrumentEditorState extends State<InstrumentEditor> {
|
||||||
|
|
||||||
if (widget.instrument != null) {
|
if (widget.instrument != null) {
|
||||||
nameController.text = widget.instrument.name;
|
nameController.text = widget.instrument.name;
|
||||||
|
_sync = widget.instrument.sync;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@ class _PersonEditorState extends State<PersonEditor> {
|
||||||
if (widget.person != null) {
|
if (widget.person != null) {
|
||||||
firstNameController.text = widget.person.firstName;
|
firstNameController.text = widget.person.firstName;
|
||||||
lastNameController.text = widget.person.lastName;
|
lastNameController.text = widget.person.lastName;
|
||||||
|
_sync = widget.person.sync;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -52,6 +52,7 @@ class _RecordingEditorState extends State<RecordingEditor> {
|
||||||
setState(() {
|
setState(() {
|
||||||
this._workInfo = _workInfo;
|
this._workInfo = _workInfo;
|
||||||
this._performanceInfos = _performanceInfos;
|
this._performanceInfos = _performanceInfos;
|
||||||
|
_sync = widget.recordingInfo.recording.sync;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -201,6 +201,8 @@ class _WorkEditorState extends State<WorkEditor> {
|
||||||
instruments: List.from(partInfo.instruments),
|
instruments: List.from(partInfo.instruments),
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_sync = widget.workInfo.work.sync;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue