mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 15:45:38 +00:00
Fixed an issue where quitting the application during a ROM rescan could lead to an unclean shutdown
This commit is contained in:
parent
c0a2f9f557
commit
35e7cd0b77
|
@ -91,12 +91,14 @@ GuiMenu::GuiMenu()
|
||||||
|
|
||||||
GuiMenu::~GuiMenu()
|
GuiMenu::~GuiMenu()
|
||||||
{
|
{
|
||||||
// This is required for the situation where scrolling started just before the menu
|
if (ViewController::getInstance()->getState().viewing != ViewController::ViewMode::NOTHING) {
|
||||||
// was openened. Without this, the scrolling would run until manually stopped after
|
// This is required for the situation where scrolling started just before the menu
|
||||||
// the menu has been closed.
|
// was openened. Without this, the scrolling would run until manually stopped after
|
||||||
ViewController::getInstance()->stopScrolling();
|
// the menu has been closed.
|
||||||
|
ViewController::getInstance()->stopScrolling();
|
||||||
|
|
||||||
ViewController::getInstance()->startViewVideos();
|
ViewController::getInstance()->startViewVideos();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void GuiMenu::openScraperOptions()
|
void GuiMenu::openScraperOptions()
|
||||||
|
|
|
@ -1409,13 +1409,14 @@ void ViewController::reloadAll()
|
||||||
void ViewController::rescanROMDirectory()
|
void ViewController::rescanROMDirectory()
|
||||||
{
|
{
|
||||||
mWindow->setBlockInput(true);
|
mWindow->setBlockInput(true);
|
||||||
|
resetCamera();
|
||||||
|
|
||||||
|
mState.viewing = ViewMode::NOTHING;
|
||||||
mGamelistViews.clear();
|
mGamelistViews.clear();
|
||||||
mSystemListView.reset();
|
mSystemListView.reset();
|
||||||
mCurrentView.reset();
|
mCurrentView.reset();
|
||||||
mPreviousView.reset();
|
mPreviousView.reset();
|
||||||
mSkipView.reset();
|
mSkipView.reset();
|
||||||
resetCamera();
|
|
||||||
|
|
||||||
mWindow->renderSplashScreen(Window::SplashScreenState::SCANNING, 0.0f);
|
mWindow->renderSplashScreen(Window::SplashScreenState::SCANNING, 0.0f);
|
||||||
CollectionSystemsManager::getInstance()->deinit(false);
|
CollectionSystemsManager::getInstance()->deinit(false);
|
||||||
|
|
Loading…
Reference in a new issue