mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-21 21:55:38 +00:00
Fixed an issue where videos would start playing with the menu open after scraping.
This commit is contained in:
parent
c00374419b
commit
926d730bd2
|
@ -453,14 +453,19 @@ void GuiMetaDataEd::close()
|
|||
// }
|
||||
|
||||
std::function<void()> closeFunc;
|
||||
closeFunc = [this] { delete this; };
|
||||
closeFunc = [this] {
|
||||
ViewController::get()->onPauseVideo();
|
||||
delete this;
|
||||
};
|
||||
|
||||
std::function<void()> closeFuncReload;
|
||||
closeFuncReload = [this] {
|
||||
// Always reload the gamelist if media files were updated, even if the user
|
||||
// selected to not save any metadata changes.
|
||||
if (mMediaFilesUpdated)
|
||||
if (mMediaFilesUpdated) {
|
||||
ViewController::get()->reloadGameListView(mScraperParams.system);
|
||||
ViewController::get()->onPauseVideo();
|
||||
}
|
||||
delete this;
|
||||
};
|
||||
|
||||
|
|
|
@ -107,6 +107,7 @@ GuiScraperMulti::~GuiScraperMulti()
|
|||
for (auto it = SystemData::sSystemVector.cbegin();
|
||||
it !=SystemData::sSystemVector.cend(); it++)
|
||||
(*it)->sortSystem();
|
||||
ViewController::get()->onPauseVideo();
|
||||
}
|
||||
|
||||
void GuiScraperMulti::onSizeChanged()
|
||||
|
|
Loading…
Reference in a new issue