ux: Fixed welcome screen settings button not always working

This commit is contained in:
WerWolv
2022-09-06 10:50:17 +02:00
parent ffbaef3872
commit 6367152650

View File

@@ -11,8 +11,10 @@ namespace hex::plugin::builtin {
ViewSettings::ViewSettings() : View("hex.builtin.view.settings.name") {
EventManager::subscribe<RequestOpenWindow>(this, [this](const std::string &name) {
if (name == "Settings") {
TaskManager::doLater([] { ImGui::OpenPopup(View::toWindowName("hex.builtin.view.settings.name").c_str()); });
this->getWindowOpenState() = true;
TaskManager::doLater([this] {
ImGui::OpenPopup(View::toWindowName("hex.builtin.view.settings.name").c_str());
this->getWindowOpenState() = true;
});
}
});