From 6d0b583c1f9bb54ffaaaf656ccc7a35ebd497e6e Mon Sep 17 00:00:00 2001 From: dankmeme01 <42031238+dankmeme01@users.noreply.github.com> Date: Tue, 8 Oct 2024 15:08:29 +0200 Subject: [PATCH] fix string setting filter not applying --- loader/src/loader/SettingNodeV3.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/loader/src/loader/SettingNodeV3.cpp b/loader/src/loader/SettingNodeV3.cpp index 1985df9b..a02f4701 100644 --- a/loader/src/loader/SettingNodeV3.cpp +++ b/loader/src/loader/SettingNodeV3.cpp @@ -351,6 +351,10 @@ bool StringSettingNodeV3::init(std::shared_ptr setting, float w }); m_input->setScale(.7f); m_input->setString(this->getSetting()->getValue()); + if (auto filter = this->getSetting()->getAllowedCharacters()) { + m_input->setFilter(*filter); + } + this->getButtonMenu()->addChildAtPosition(m_input, Anchor::Center); if (setting->getEnumOptions()) {