mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-29 17:45:38 +00:00
Fixed an issue where a black screen would sometimes be shown when enabling collections.
This commit is contained in:
parent
37e8e71adf
commit
03fec8b74d
|
@ -84,6 +84,7 @@ GuiCollectionSystemsOptions::GuiCollectionSystemsOptions(
|
||||||
setNeedsSaving();
|
setNeedsSaving();
|
||||||
setNeedsReloading();
|
setNeedsReloading();
|
||||||
setNeedsCollectionsUpdate();
|
setNeedsCollectionsUpdate();
|
||||||
|
setDoNotInvalidateCachedBackground();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -137,6 +138,7 @@ GuiCollectionSystemsOptions::GuiCollectionSystemsOptions(
|
||||||
setNeedsReloading();
|
setNeedsReloading();
|
||||||
setNeedsCollectionsUpdate();
|
setNeedsCollectionsUpdate();
|
||||||
setNeedsGoToGroupedCollections();
|
setNeedsGoToGroupedCollections();
|
||||||
|
setDoNotInvalidateCachedBackground();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -33,6 +33,7 @@ GuiSettings::GuiSettings(
|
||||||
mNeedsGoToStart(false),
|
mNeedsGoToStart(false),
|
||||||
mNeedsGoToSystem(false),
|
mNeedsGoToSystem(false),
|
||||||
mNeedsGoToGroupedCollections(false),
|
mNeedsGoToGroupedCollections(false),
|
||||||
|
mDoNotInvalidateCachedBackground(false),
|
||||||
mGoToSystem(nullptr)
|
mGoToSystem(nullptr)
|
||||||
{
|
{
|
||||||
addChild(&mMenu);
|
addChild(&mMenu);
|
||||||
|
@ -134,9 +135,11 @@ void GuiSettings::save()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mNeedsSaving || mNeedsCollectionsUpdate || mNeedsReloading || mNeedsSorting ||
|
if (!mDoNotInvalidateCachedBackground) {
|
||||||
mNeedsGoToStart || mNeedsGoToSystem)
|
if (mNeedsSaving || mNeedsCollectionsUpdate || mNeedsReloading || mNeedsSorting ||
|
||||||
mWindow->invalidateCachedBackground();
|
mNeedsGoToStart || mNeedsGoToSystem)
|
||||||
|
mWindow->invalidateCachedBackground();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void GuiSettings::addEditableTextComponent(
|
void GuiSettings::addEditableTextComponent(
|
||||||
|
|
|
@ -43,6 +43,7 @@ public:
|
||||||
void setNeedsGoToSystem(SystemData* goToSystem)
|
void setNeedsGoToSystem(SystemData* goToSystem)
|
||||||
{ mNeedsGoToSystem = true; mGoToSystem = goToSystem; };
|
{ mNeedsGoToSystem = true; mGoToSystem = goToSystem; };
|
||||||
void setNeedsGoToGroupedCollections() { mNeedsGoToGroupedCollections = true; };
|
void setNeedsGoToGroupedCollections() { mNeedsGoToGroupedCollections = true; };
|
||||||
|
void setDoNotInvalidateCachedBackground() { mDoNotInvalidateCachedBackground = true; };
|
||||||
|
|
||||||
bool input(InputConfig* config, Input input) override;
|
bool input(InputConfig* config, Input input) override;
|
||||||
std::vector<HelpPrompt> getHelpPrompts() override;
|
std::vector<HelpPrompt> getHelpPrompts() override;
|
||||||
|
@ -60,6 +61,7 @@ private:
|
||||||
bool mNeedsGoToStart;
|
bool mNeedsGoToStart;
|
||||||
bool mNeedsGoToSystem;
|
bool mNeedsGoToSystem;
|
||||||
bool mNeedsGoToGroupedCollections;
|
bool mNeedsGoToGroupedCollections;
|
||||||
|
bool mDoNotInvalidateCachedBackground;
|
||||||
|
|
||||||
SystemData* mGoToSystem;
|
SystemData* mGoToSystem;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue