mirror of
https://github.com/tildearrow/furnace.git
synced 2025-01-03 14:11:11 +00:00
GUI: remember last open windows
This commit is contained in:
parent
03c4891acb
commit
386db38c34
1 changed files with 30 additions and 0 deletions
|
@ -5302,6 +5302,21 @@ bool FurnaceGUI::init() {
|
||||||
float dpiScaleF;
|
float dpiScaleF;
|
||||||
|
|
||||||
workingDir=e->getConfString("lastDir",getHomeDir());
|
workingDir=e->getConfString("lastDir",getHomeDir());
|
||||||
|
|
||||||
|
editControlsOpen=e->getConfBool("editControlsOpen",true);
|
||||||
|
ordersOpen=e->getConfBool("ordersOpen",true);
|
||||||
|
insListOpen=e->getConfBool("insListOpen",true);
|
||||||
|
songInfoOpen=e->getConfBool("songInfoOpen",true);
|
||||||
|
patternOpen=e->getConfBool("patternOpen",true);
|
||||||
|
insEditOpen=e->getConfBool("insEditOpen",false);
|
||||||
|
waveListOpen=e->getConfBool("waveListOpen",true);
|
||||||
|
waveEditOpen=e->getConfBool("waveEditOpen",false);
|
||||||
|
sampleListOpen=e->getConfBool("sampleListOpen",true);
|
||||||
|
sampleEditOpen=e->getConfBool("sampleEditOpen",false);
|
||||||
|
settingsOpen=e->getConfBool("settingsOpen",false);
|
||||||
|
mixerOpen=e->getConfBool("mixerOpen",false);
|
||||||
|
oscOpen=e->getConfBool("oscOpen",true);
|
||||||
|
|
||||||
syncSettings();
|
syncSettings();
|
||||||
|
|
||||||
#if !(defined(__APPLE__) || defined(_WIN32))
|
#if !(defined(__APPLE__) || defined(_WIN32))
|
||||||
|
@ -5380,6 +5395,21 @@ bool FurnaceGUI::finish() {
|
||||||
|
|
||||||
e->setConf("lastDir",workingDir);
|
e->setConf("lastDir",workingDir);
|
||||||
|
|
||||||
|
// commit last open windows
|
||||||
|
e->setConf("editControlsOpen",editControlsOpen);
|
||||||
|
e->setConf("ordersOpen",ordersOpen);
|
||||||
|
e->setConf("insListOpen",insListOpen);
|
||||||
|
e->setConf("songInfoOpen",songInfoOpen);
|
||||||
|
e->setConf("patternOpen",patternOpen);
|
||||||
|
e->setConf("insEditOpen",insEditOpen);
|
||||||
|
e->setConf("waveListOpen",waveListOpen);
|
||||||
|
e->setConf("waveEditOpen",waveEditOpen);
|
||||||
|
e->setConf("sampleListOpen",sampleListOpen);
|
||||||
|
e->setConf("sampleEditOpen",sampleEditOpen);
|
||||||
|
e->setConf("settingsOpen",settingsOpen);
|
||||||
|
e->setConf("mixerOpen",mixerOpen);
|
||||||
|
e->setConf("oscOpen",oscOpen);
|
||||||
|
|
||||||
for (int i=0; i<DIV_MAX_CHANS; i++) {
|
for (int i=0; i<DIV_MAX_CHANS; i++) {
|
||||||
delete oldPat[i];
|
delete oldPat[i];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue