|
@@ -866,7 +866,7 @@ export class OpenSheetMusicDisplay {
|
|
|
if (enable) {
|
|
|
for (let i: number = 0; i < this.cursorsOptions.length; i++){
|
|
|
// save previous cursor state
|
|
|
- const hidden: boolean = this.cursors[i]?.Hidden;
|
|
|
+ const hidden: boolean = this.cursors[i]?.Hidden ?? false;
|
|
|
const previousIterator: MusicPartManagerIterator = this.cursors[i]?.Iterator;
|
|
|
this.cursors[i]?.hide();
|
|
|
|
|
@@ -886,10 +886,15 @@ export class OpenSheetMusicDisplay {
|
|
|
|
|
|
// restore old cursor state
|
|
|
if (this.rules.RestoreCursorAfterRerender) {
|
|
|
- this.cursors[i].hidden = hidden;
|
|
|
if (previousIterator) {
|
|
|
this.cursors[i].iterator = previousIterator;
|
|
|
- this.cursors[i].update();
|
|
|
+ // this.cursors[i].update();
|
|
|
+ }
|
|
|
+
|
|
|
+ if (hidden) {
|
|
|
+ this.cursors[i].hide();
|
|
|
+ } else {
|
|
|
+ this.cursors[i].show();
|
|
|
}
|
|
|
}
|
|
|
}
|