mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-16 12:05: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;
|
std::function<void()> closeFunc;
|
||||||
closeFunc = [this] { delete this; };
|
closeFunc = [this] {
|
||||||
|
ViewController::get()->onPauseVideo();
|
||||||
|
delete this;
|
||||||
|
};
|
||||||
|
|
||||||
std::function<void()> closeFuncReload;
|
std::function<void()> closeFuncReload;
|
||||||
closeFuncReload = [this] {
|
closeFuncReload = [this] {
|
||||||
// Always reload the gamelist if media files were updated, even if the user
|
// Always reload the gamelist if media files were updated, even if the user
|
||||||
// selected to not save any metadata changes.
|
// selected to not save any metadata changes.
|
||||||
if (mMediaFilesUpdated)
|
if (mMediaFilesUpdated) {
|
||||||
ViewController::get()->reloadGameListView(mScraperParams.system);
|
ViewController::get()->reloadGameListView(mScraperParams.system);
|
||||||
|
ViewController::get()->onPauseVideo();
|
||||||
|
}
|
||||||
delete this;
|
delete this;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -107,6 +107,7 @@ GuiScraperMulti::~GuiScraperMulti()
|
||||||
for (auto it = SystemData::sSystemVector.cbegin();
|
for (auto it = SystemData::sSystemVector.cbegin();
|
||||||
it !=SystemData::sSystemVector.cend(); it++)
|
it !=SystemData::sSystemVector.cend(); it++)
|
||||||
(*it)->sortSystem();
|
(*it)->sortSystem();
|
||||||
|
ViewController::get()->onPauseVideo();
|
||||||
}
|
}
|
||||||
|
|
||||||
void GuiScraperMulti::onSizeChanged()
|
void GuiScraperMulti::onSizeChanged()
|
||||||
|
|
Loading…
Reference in a new issue