GUI: Fix RTL Add Game dialog leaving UI in a broken state (#12765)

Make sure we clear all RTL dialog paddings once we go back to the launcher.
This commit is contained in:
SupSuper 2021-07-28 09:37:25 +01:00
parent a8d7767b36
commit 782cd55c31
2 changed files with 5 additions and 4 deletions

View file

@ -290,6 +290,11 @@ void GuiManager::redraw() {
if (_redrawStatus == kRedrawOpenDialog && _dialogStack.size() > 2)
shading = ThemeEngine::kShadingNone;
// Reset any custom RTL paddings set by stacked dialogs when we go back to the top
if (useRTL() && _dialogStack.size() == 1) {
setDialogPaddings(0, 0);
}
switch (_redrawStatus) {
case kRedrawCloseDialog:
case kRedrawFull: