From 123b3abff3a98b21b0ff9a82cc6233477cbd0c44 Mon Sep 17 00:00:00 2001 From: HJfod <60038575+HJfod@users.noreply.github.com> Date: Tue, 12 Nov 2024 23:05:03 +0200 Subject: [PATCH] somes settings UI fixes --- loader/src/loader/SettingNodeV3.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/loader/src/loader/SettingNodeV3.cpp b/loader/src/loader/SettingNodeV3.cpp index a925485a..23d42fb9 100644 --- a/loader/src/loader/SettingNodeV3.cpp +++ b/loader/src/loader/SettingNodeV3.cpp @@ -136,7 +136,7 @@ void SettingNodeV3::updateState(CCNode* invoker) { m_impl->bg->setOpacity(75); } - m_impl->nameMenu->setContentWidth(this->getContentWidth() - m_impl->buttonMenu->getContentWidth() - 20); + m_impl->nameMenu->setContentWidth(this->getContentWidth() - m_impl->buttonMenu->getContentWidth() - 25); m_impl->nameMenu->updateLayout(); } @@ -462,6 +462,7 @@ void FileSettingNodeV3::updateState(CCNode* invoker) { // which is clever and good UX but also a hack so I also need to hack to support that const auto isTextualDefaultValue = [this, setting = this->getSetting()]() { if (this->hasNonDefaultValue()) return false; + if (setting->getDefaultValue().string().size() > 20) return false; std::error_code ec; return setting->isFolder() ? !std::filesystem::is_directory(setting->getDefaultValue(), ec) :