diff --git a/src/gui/commandPalette.cpp b/src/gui/commandPalette.cpp index 6052fe054..01c26c010 100644 --- a/src/gui/commandPalette.cpp +++ b/src/gui/commandPalette.cpp @@ -208,44 +208,38 @@ void FurnaceGUI::drawPalette() { if (paletteSearchResults.size()>0) { int i=paletteSearchResults[curPaletteChoice]; switch (curPaletteType) { - case CMDPAL_TYPE_MAIN: - doAction(i); - break; - - case CMDPAL_TYPE_RECENT: - openRecentFile(recentFile[i]); - break; - - case CMDPAL_TYPE_INSTRUMENTS: - curIns=i-1; - break; - - case CMDPAL_TYPE_SAMPLES: - curSample=i; - break; - - case CMDPAL_TYPE_INSTRUMENT_CHANGE: - doChangeIns(i-1); - break; - - case CMDPAL_TYPE_ADD_CHIP: - if (i!=DIV_SYSTEM_NULL) { - if (!e->addSystem((DivSystem)i)) { - showError("cannot add chip! ("+e->getLastError()+")"); - } else { - MARK_MODIFIED; + case CMDPAL_TYPE_MAIN: + doAction(i); + break; + case CMDPAL_TYPE_RECENT: + openRecentFile(recentFile[i]); + break; + case CMDPAL_TYPE_INSTRUMENTS: + curIns=i-1; + break; + case CMDPAL_TYPE_SAMPLES: + curSample=i; + break; + case CMDPAL_TYPE_INSTRUMENT_CHANGE: + doChangeIns(i-1); + break; + case CMDPAL_TYPE_ADD_CHIP: + if (i!=DIV_SYSTEM_NULL) { + if (!e->addSystem((DivSystem)i)) { + showError("cannot add chip! ("+e->getLastError()+")"); + } else { + MARK_MODIFIED; + } + ImGui::CloseCurrentPopup(); + if (e->song.autoSystem) { + autoDetectSystem(); + } + updateWindowTitle(); } - ImGui::CloseCurrentPopup(); - if (e->song.autoSystem) { - autoDetectSystem(); - } - updateWindowTitle(); - } - break; - - default: - logE("invalid command palette type"); - break; + break; + default: + logE("invalid command palette type"); + break; }; } ImGui::CloseCurrentPopup(); diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index cb385022b..55a9c472c 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -7898,7 +7898,7 @@ FurnaceGUI::FurnaceGUI(): memset(macroRelLabel,0,32); memset(emptyLabel,0,32); memset(emptyLabel2,0,32); - //effect sorting + // effect sorting memset(effectsShow,1,sizeof(bool)*10); strncpy(noteOffLabel,"OFF",32);