GUI: store edit/followOrders/followPattern state

in config
This commit is contained in:
tildearrow 2022-05-14 01:53:14 -05:00
parent 1ba5ac6766
commit 4a33a3846a
2 changed files with 6 additions and 1 deletions

View File

@ -16,7 +16,6 @@
- try to find out why does VSlider not accept keyboard input
- finish lock layout
- if macros have release, note off should release them
- store edit/followOrders/followPattern state in config
- add ability to select a column by double clicking
- add ability to move selection by dragging
- Apply button in settings

View File

@ -3657,6 +3657,9 @@ bool FurnaceGUI::init() {
fullScreen=e->getConfBool("fullScreen",false);
#endif
mobileUI=e->getConfBool("mobileUI",MOBILE_UI_DEFAULT);
edit=e->getConfBool("edit",false);
followOrders=e->getConfBool("followOrders",true);
followPattern=e->getConfBool("followPattern",true);
syncSettings();
@ -3840,6 +3843,9 @@ bool FurnaceGUI::finish() {
e->setConf("lockLayout",lockLayout);
e->setConf("fullScreen",fullScreen);
e->setConf("mobileUI",mobileUI);
e->setConf("edit",edit);
e->setConf("followOrders",followOrders);
e->setConf("followPattern",followPattern);
for (int i=0; i<DIV_MAX_CHANS; i++) {
delete oldPat[i];