From 9d02afe0eb94b3dab620417edc06844f393b2f72 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sun, 11 Dec 2022 13:34:58 -0500 Subject: [PATCH] fix build --- src/gui/gui.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index a13a49028..103582df1 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -3822,8 +3822,10 @@ bool FurnaceGUI::loop() { curWindow=GUI_WINDOW_PATTERN; drawPattern(); drawPiano(); - drawFindReplace(); drawMobileOrderSel(); + + globalWinFlags=0; + drawFindReplace(); break; } @@ -5150,7 +5152,11 @@ bool FurnaceGUI::init() { volMeterOpen=e->getConfBool("volMeterOpen",true); statsOpen=e->getConfBool("statsOpen",false); compatFlagsOpen=e->getConfBool("compatFlagsOpen",false); - pianoOpen=e->getConfBool("pianoOpen",IS_MOBILE?true:false); +#ifdef IS_MOBILE + pianoOpen=e->getConfBool("pianoOpen",true); +#else + pianoOpen=e->getConfBool("pianoOpen",false); +#endif notesOpen=e->getConfBool("notesOpen",false); channelsOpen=e->getConfBool("channelsOpen",false); patManagerOpen=e->getConfBool("patManagerOpen",false);