mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-18 07:05:39 +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)
|
||||
{
|
||||
if (mFetching && input.value)
|
||||
return false;
|
||||
|
||||
if (mFullscreenViewing && input.value) {
|
||||
if (config->isMappedLike("left", input)) {
|
||||
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;
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue