diff --git a/es-app/src/guis/GuiScraperMenu.cpp b/es-app/src/guis/GuiScraperMenu.cpp index 25b25887f..7e8dc4c44 100644 --- a/es-app/src/guis/GuiScraperMenu.cpp +++ b/es-app/src/guis/GuiScraperMenu.cpp @@ -621,7 +621,8 @@ void GuiScraperMenu::start() GuiScraperMulti* gsm = new GuiScraperMulti(mWindow, searches, Settings::getInstance()->getBool("ScraperInteractive")); mWindow->pushGui(gsm); - delete this; + mMenu.setCursorToList(); + mMenu.setCursorToFirstListEntry(); } } diff --git a/es-core/src/components/MenuComponent.h b/es-core/src/components/MenuComponent.h index 3ae216b30..a0b084f6e 100644 --- a/es-core/src/components/MenuComponent.h +++ b/es-core/src/components/MenuComponent.h @@ -36,7 +36,7 @@ public: void save(); void onSizeChanged() override; - void setNeedsSaving() { mNeedsSaving = true; }; + void setNeedsSaving() { mNeedsSaving = true; } inline void addRow(const ComponentListRow& row, bool setCursorHere = false) { mList->addRow(row, setCursorHere); updateSize(); } @@ -51,13 +51,14 @@ public: addRow(row, setCursorHere); } - inline void addSaveFunc(const std::function& func) { mSaveFuncs.push_back(func); }; + inline void addSaveFunc(const std::function& func) { mSaveFuncs.push_back(func); } void addButton(const std::string& label, const std::string& helpText, const std::function& callback); void setTitle(std::string title, const std::shared_ptr& font); + void setCursorToFirstListEntry() { mList->moveCursor(-mList->getCursorId()); } inline void setCursorToList() { mGrid.setCursorTo(mList); } inline void setCursorToButtons() { assert(mButtonGrid); mGrid.setCursorTo(mButtonGrid); }