GUI: prevent unified view from bricking mobile

This commit is contained in:
tildearrow 2023-05-18 02:34:19 -05:00
parent c05557b59d
commit dae87a4980
1 changed files with 173 additions and 169 deletions

View File

@ -463,9 +463,6 @@ void FurnaceGUI::drawMobileControls() {
ImGui::Separator();
if (settings.unifiedDataView) {
drawInsList(true);
} else {
switch (mobScene) {
case GUI_SCENE_PATTERN:
case GUI_SCENE_ORDERS:
@ -473,10 +470,18 @@ void FurnaceGUI::drawMobileControls() {
drawInsList(true);
break;
case GUI_SCENE_WAVETABLE:
if (settings.unifiedDataView) {
drawInsList(true);
} else {
drawWaveList(true);
}
break;
case GUI_SCENE_SAMPLE:
if (settings.unifiedDataView) {
drawInsList(true);
} else {
drawSampleList(true);
}
break;
case GUI_SCENE_SONG: {
if (ImGui::Button("New")) {
@ -640,7 +645,6 @@ void FurnaceGUI::drawMobileControls() {
}
}
}
}
ImGui::End();
}