GUI: possibly fix an instrument saving issue

This commit is contained in:
tildearrow 2022-04-29 04:34:20 -05:00
parent 2583b18f86
commit 0817fdeb84

View file

@ -2903,6 +2903,10 @@ bool FurnaceGUI::loop() {
if (fileDialog->render(ImVec2(600.0f*dpiScale,400.0f*dpiScale),ImVec2(scrW*dpiScale,scrH*dpiScale))) {
bool openOpen=false;
//ImGui::GetIO().ConfigFlags&=~ImGuiConfigFlags_NavEnableKeyboard;
if (curFileDialog==GUI_FILE_INS_OPEN && prevIns!=-3) {
curIns=prevIns;
prevIns=-3;
}
switch (curFileDialog) {
case GUI_FILE_OPEN:
case GUI_FILE_SAVE:
@ -2947,9 +2951,6 @@ bool FurnaceGUI::loop() {
workingDirLayout=fileDialog->getPath()+DIR_SEPARATOR_STR;
break;
}
if (prevIns!=-3) {
curIns=prevIns;
}
if (fileDialog->accepted()) {
fileName=fileDialog->getFileName();
if (fileName!="") {