feat: persist global track visibility status and metronome status

This commit is contained in:
Xiaohan-Tian
2026-06-02 23:25:30 -07:00
parent 6b0de74acd
commit 528e4ca7f9
9 changed files with 219 additions and 43 deletions
+17
View File
@@ -0,0 +1,17 @@
import { KGProject } from '../KGProject';
export function upgradeToV16(project: KGProject): KGProject {
try {
if (typeof project.getShowGlobalTracks() !== 'boolean') {
project.setShowGlobalTracks(false);
}
if (typeof project.getIsMetronomeEnabled() !== 'boolean') {
project.setIsMetronomeEnabled(false);
}
} finally {
project.setProjectStructureVersion(16);
}
return project;
}