Removed some unnecessary help prompt reload logic.

This commit is contained in:
Leon Styhre 2023-01-22 18:16:49 +01:00
parent fb7c9a1e3b
commit d15927c156
3 changed files with 0 additions and 7 deletions

View file

@ -1102,7 +1102,6 @@ void GuiMenu::openInputDeviceOptions()
Settings::getInstance()->getString("InputControllerType")) {
Settings::getInstance()->setString("InputControllerType",
inputControllerType->getSelected());
s->setNeedsReloadHelpPrompts();
s->setNeedsSaving();
}
});

View file

@ -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();

View file

@ -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;