mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-18 15:15:37 +00:00
Multi-scraper no longer jumps to the main menu after finished scraping.
This commit is contained in:
parent
38f13d114b
commit
6e4b26daae
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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<void()>& func) { mSaveFuncs.push_back(func); };
|
||||
inline void addSaveFunc(const std::function<void()>& func) { mSaveFuncs.push_back(func); }
|
||||
|
||||
void addButton(const std::string& label, const std::string& helpText,
|
||||
const std::function<void()>& callback);
|
||||
|
||||
void setTitle(std::string title, const std::shared_ptr<Font>& font);
|
||||
|
||||
void setCursorToFirstListEntry() { mList->moveCursor(-mList->getCursorId()); }
|
||||
inline void setCursorToList() { mGrid.setCursorTo(mList); }
|
||||
inline void setCursorToButtons() { assert(mButtonGrid); mGrid.setCursorTo(mButtonGrid); }
|
||||
|
||||
|
|
Loading…
Reference in a new issue