-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Effect chain preset menu tweaks #4548
Conversation
continue; | ||
} | ||
|
||
auto pEffectMenu = make_parented<QMenu>(m_pMenu); | ||
pEffectMenu->setTitle(pEffectSlot->getManifest()->displayName()); | ||
pEffectMenu->setTitle((effectSlotNumPrefix + pEffectSlot->getManifest()->displayName())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pEffectMenu->setTitle((effectSlotNumPrefix + pEffectSlot->getManifest()->displayName())); | |
pEffectMenu->setTitle(effectSlotNumPrefix + pEffectSlot->getManifest()->displayName()); |
const QString effectSlotNumPrefix(QString::number(effectSlotIndex + 1) + ": "); | ||
auto pManifest = pEffectSlot->getManifest(); | ||
if (pManifest == nullptr) { | ||
m_pMenu->addAction(tr("Empty Effect Slot %1").arg(effectSlotIndex + 1)); | ||
m_pMenu->addAction(effectSlotNumPrefix + kNoEffectString); | ||
continue; | ||
} | ||
|
||
auto pEffectMenu = make_parented<QMenu>(m_pMenu); | ||
pEffectMenu->setTitle(pEffectSlot->getManifest()->displayName()); | ||
pEffectMenu->setTitle((effectSlotNumPrefix + pEffectSlot->getManifest()->displayName())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This entire thing could be written a bit more concisely if we choose the consistent formatting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've moved fetching the parameter lists down and set the title in the initializer
Sqashed, rebased. Please check if that's what you had in mind.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright now?
I think this might unnecessarily worsen UX a little bit. |
Please elaborate why you think so. |
Sorry yes. I personally find the english sentence just nicer instead of just having the number and the placeholder string ( Maybe UX was the wrong term since my suggestion was less about workflow and more just about the choice of string being displayed... |
I see, that's understandable. Is |
Well non-empty effect slots should have a number and a colon at the start so you would spot the difference quite quickly. I can understand if we favor the consistency though. On a related note, what do you think about replacing the |
07b8938
to
0fd6183
Compare
I prefer the --- |
for what it's worth, I also prefer the --- or —, or even just "2: " (blank space) |
but "(empty)" is also fine. |
I personally prefer |
(seems some of my comments were lost after commenting on my mobile..) Okay, so we have a majority for ---/⸺
Hmm, Since |
I tried to address the other comment -- aprt from that it's okay now? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. LGTM
kNoEffectString
constant in DlgPrefEffectskNoEffectString
instead of "Empty Effect Slot" in the menu