mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-30 03:55:40 +00:00
Fixed an issue where extreme controller input in GuiThemeDownloader could crash the application
This commit is contained in:
parent
82fd96580e
commit
4fcd956156
|
@ -899,6 +899,9 @@ void GuiThemeDownloader::onSizeChanged()
|
||||||
|
|
||||||
bool GuiThemeDownloader::input(InputConfig* config, Input input)
|
bool GuiThemeDownloader::input(InputConfig* config, Input input)
|
||||||
{
|
{
|
||||||
|
if (mFetching && input.value)
|
||||||
|
return false;
|
||||||
|
|
||||||
if (mFullscreenViewing && input.value) {
|
if (mFullscreenViewing && input.value) {
|
||||||
if (config->isMappedLike("left", input)) {
|
if (config->isMappedLike("left", input)) {
|
||||||
if (mFullscreenViewerIndex > 0)
|
if (mFullscreenViewerIndex > 0)
|
||||||
|
@ -919,7 +922,7 @@ bool GuiThemeDownloader::input(InputConfig* config, Input input)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config->isMappedTo("b", input) && input.value && !mFetching) {
|
if (config->isMappedTo("b", input) && input.value) {
|
||||||
delete this;
|
delete this;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue