b
This commit is contained in:
@@ -656,9 +656,18 @@ void CommandUI::commandAccepted(bool flag,uint16_t command,uint8_t result)
|
||||
{
|
||||
if(string.size() > 0)
|
||||
{
|
||||
QTextToSpeech *tts = new QTextToSpeech();
|
||||
tts->say(string);
|
||||
tts->deleteLater();
|
||||
QVariant flag;
|
||||
Config *cfg = new Config();
|
||||
|
||||
cfg->getTTS(&flag);
|
||||
|
||||
if(flag.toBool())
|
||||
{
|
||||
QTextToSpeech *tts = new QTextToSpeech();
|
||||
tts->say(string);
|
||||
tts->deleteLater();
|
||||
|
||||
}
|
||||
|
||||
emit showMessage(string);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user