mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-27 15:03:01 +00:00
GUI: possibly fix an instrument saving issue
This commit is contained in:
parent
2583b18f86
commit
0817fdeb84
1 changed files with 4 additions and 3 deletions
|
@ -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!="") {
|
||||
|
|
Loading…
Reference in a new issue