1
0
Fork 0

Add helpful placeholder in command dialog

This commit is contained in:
Duncan Ogilvie 2020-11-05 02:39:12 +01:00
parent 156fe7cd2e
commit ad4308fc53
1 changed files with 12 additions and 0 deletions

View File

@ -275,6 +275,18 @@ void CommandLineEdit::scriptTypeChanged(int index)
{
mCurrentScriptIndex = index;
// Custom placeholder for the default commands
duint timeWastedDebugging = 0;
BridgeSettingGetUint("Engine", "TimeWastedDebugging", &timeWastedDebugging);
if(index == 0 && timeWastedDebugging < 60 * 60 * 10)
{
setPlaceholderText(tr("Command are comma separated (like assembly instructions): mov eax, ebx"));
}
else
{
setPlaceholderText(QString());
}
// Force reset autocompletion (blank string)
emit textEdited("");
}