Saves edit step and coarse step number between instances

This commit is contained in:
recme 2025-11-08 13:23:53 -05:00 committed by tildearrow
parent 5190d7b9e6
commit d3ce1a0b84

View file

@ -8341,6 +8341,8 @@ void FurnaceGUI::syncState() {
orderLock=e->getConfBool("orderLock",false);
followOrders=e->getConfBool("followOrders",true);
followPattern=e->getConfBool("followPattern",true);
editStep=e->getConfInt("editStep",1);
editStepCoarse=e->getConfInt("editStepCoarse",16);
noteInputMode=e->getConfInt("noteInputMode",GUI_NOTE_INPUT_POLY);
if (noteInputMode!=GUI_NOTE_INPUT_MONO && noteInputMode!=GUI_NOTE_INPUT_POLY && noteInputMode!=GUI_NOTE_INPUT_CHORD) {
noteInputMode=GUI_NOTE_INPUT_POLY;
@ -8513,6 +8515,8 @@ void FurnaceGUI::commitState(DivConfig& conf) {
conf.set("orderLock",orderLock);
conf.set("followOrders",followOrders);
conf.set("followPattern",followPattern);
conf.set("editStep",editStep);
conf.set("editStepCoarse",editStepCoarse);
conf.set("orderEditMode",orderEditMode);
conf.set("noteInputMode",(int)noteInputMode);
conf.set("filePlayerSync",filePlayerSync);