mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-17 22:55:38 +00:00
Removed some unnecessary help prompt reload logic.
This commit is contained in:
parent
fb7c9a1e3b
commit
d15927c156
|
@ -1102,7 +1102,6 @@ void GuiMenu::openInputDeviceOptions()
|
|||
Settings::getInstance()->getString("InputControllerType")) {
|
||||
Settings::getInstance()->setString("InputControllerType",
|
||||
inputControllerType->getSelected());
|
||||
s->setNeedsReloadHelpPrompts();
|
||||
s->setNeedsSaving();
|
||||
}
|
||||
});
|
||||
|
|
|
@ -26,7 +26,6 @@ GuiSettings::GuiSettings(std::string title)
|
|||
: mMenu {title}
|
||||
, mGoToSystem {nullptr}
|
||||
, mNeedsSaving {false}
|
||||
, mNeedsReloadHelpPrompts {false}
|
||||
, mNeedsCollectionsUpdate {false}
|
||||
, mNeedsSorting {false}
|
||||
, mNeedsSortingCollections {false}
|
||||
|
@ -61,9 +60,6 @@ void GuiSettings::save()
|
|||
if (mNeedsSaving)
|
||||
Settings::getInstance()->saveFile();
|
||||
|
||||
if (mNeedsReloadHelpPrompts)
|
||||
mWindow->reloadHelpPrompts();
|
||||
|
||||
if (mNeedsCollectionsUpdate) {
|
||||
CollectionSystemsManager::getInstance()->loadEnabledListFromSettings();
|
||||
CollectionSystemsManager::getInstance()->updateSystemsList();
|
||||
|
|
|
@ -45,7 +45,6 @@ public:
|
|||
void setMenuPosition(glm::vec3 position) { mMenu.setPosition(position); }
|
||||
|
||||
void setNeedsSaving(bool state = true) { mNeedsSaving = state; }
|
||||
void setNeedsReloadHelpPrompts() { mNeedsReloadHelpPrompts = true; }
|
||||
void setNeedsCollectionsUpdate() { mNeedsCollectionsUpdate = true; }
|
||||
void setNeedsSorting() { mNeedsSorting = true; }
|
||||
void setNeedsSortingCollections() { mNeedsSortingCollections = true; }
|
||||
|
@ -70,7 +69,6 @@ private:
|
|||
SystemData* mGoToSystem;
|
||||
|
||||
bool mNeedsSaving;
|
||||
bool mNeedsReloadHelpPrompts;
|
||||
bool mNeedsCollectionsUpdate;
|
||||
bool mNeedsSorting;
|
||||
bool mNeedsSortingCollections;
|
||||
|
|
Loading…
Reference in a new issue