mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-21 12:54:26 -04:00
add chatlobby option to disable sending typing notifications
This commit is contained in:
parent
f3b3d2b262
commit
0ca477d01b
5 changed files with 24 additions and 2 deletions
|
@ -1088,8 +1088,8 @@ void ChatWidget::updateStatusTyping()
|
||||||
#ifdef ONLY_FOR_LINGUIST
|
#ifdef ONLY_FOR_LINGUIST
|
||||||
tr("is typing...");
|
tr("is typing...");
|
||||||
#endif
|
#endif
|
||||||
|
if(!Settings->getChatDoNotSendIsTyping())
|
||||||
rsMsgs->sendStatusString(chatId, "is typing...");
|
rsMsgs->sendStatusString(chatId, "is typing...");
|
||||||
lastStatusSendTime = time(NULL) ;
|
lastStatusSendTime = time(NULL) ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -131,6 +131,7 @@ ChatPage::save(QString &/*errmsg*/)
|
||||||
Settings->setChatSendMessageWithCtrlReturn(ui.sendMessageWithCtrlReturn->isChecked());
|
Settings->setChatSendMessageWithCtrlReturn(ui.sendMessageWithCtrlReturn->isChecked());
|
||||||
Settings->setChatSendAsPlainTextByDef(ui.sendAsPlainTextByDef->isChecked());
|
Settings->setChatSendAsPlainTextByDef(ui.sendAsPlainTextByDef->isChecked());
|
||||||
Settings->setChatLoadEmbeddedImages(ui.loadEmbeddedImages->isChecked());
|
Settings->setChatLoadEmbeddedImages(ui.loadEmbeddedImages->isChecked());
|
||||||
|
Settings->setChatDoNotSendIsTyping(ui.DontSendTyping->isChecked());
|
||||||
|
|
||||||
Settings->setChatSearchCharToStartSearch(ui.sbSearch_CharToStart->value());
|
Settings->setChatSearchCharToStartSearch(ui.sbSearch_CharToStart->value());
|
||||||
Settings->setChatSearchCaseSensitively(ui.cbSearch_CaseSensitively->isChecked());
|
Settings->setChatSearchCaseSensitively(ui.cbSearch_CaseSensitively->isChecked());
|
||||||
|
@ -240,6 +241,7 @@ ChatPage::load()
|
||||||
ui.sendMessageWithCtrlReturn->setChecked(Settings->getChatSendMessageWithCtrlReturn());
|
ui.sendMessageWithCtrlReturn->setChecked(Settings->getChatSendMessageWithCtrlReturn());
|
||||||
ui.sendAsPlainTextByDef->setChecked(Settings->getChatSendAsPlainTextByDef());
|
ui.sendAsPlainTextByDef->setChecked(Settings->getChatSendAsPlainTextByDef());
|
||||||
ui.loadEmbeddedImages->setChecked(Settings->getChatLoadEmbeddedImages());
|
ui.loadEmbeddedImages->setChecked(Settings->getChatLoadEmbeddedImages());
|
||||||
|
ui.DontSendTyping->setChecked(Settings->getChatDoNotSendIsTyping());
|
||||||
|
|
||||||
ui.sbSearch_CharToStart->setValue(Settings->getChatSearchCharToStartSearch());
|
ui.sbSearch_CharToStart->setValue(Settings->getChatSearchCharToStartSearch());
|
||||||
ui.cbSearch_CaseSensitively->setChecked(Settings->getChatSearchCaseSensitively());
|
ui.cbSearch_CaseSensitively->setChecked(Settings->getChatSearchCaseSensitively());
|
||||||
|
|
|
@ -271,6 +271,13 @@
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QCheckBox" name="DontSendTyping">
|
||||||
|
<property name="text">
|
||||||
|
<string>Do not send typing notifications</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|
|
@ -514,6 +514,16 @@ void RshareSettings::setChatSendMessageWithCtrlReturn(bool bValue)
|
||||||
setValueToGroup("Chat", "SendMessageWithCtrlReturn", bValue);
|
setValueToGroup("Chat", "SendMessageWithCtrlReturn", bValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool RshareSettings::getChatDoNotSendIsTyping()
|
||||||
|
{
|
||||||
|
return valueFromGroup("Chat", "DoNotSendIsTyping", false).toBool();
|
||||||
|
}
|
||||||
|
|
||||||
|
void RshareSettings::setChatDoNotSendIsTyping(bool bValue)
|
||||||
|
{
|
||||||
|
setValueToGroup("Chat", "DoNotSendIsTyping", bValue);
|
||||||
|
}
|
||||||
|
|
||||||
bool RshareSettings::getChatSendAsPlainTextByDef()
|
bool RshareSettings::getChatSendAsPlainTextByDef()
|
||||||
{
|
{
|
||||||
return valueFromGroup("Chat", "SendAsPlainTextByDef", false).toBool();
|
return valueFromGroup("Chat", "SendAsPlainTextByDef", false).toBool();
|
||||||
|
|
|
@ -210,6 +210,9 @@ public:
|
||||||
bool getChatSendMessageWithCtrlReturn();
|
bool getChatSendMessageWithCtrlReturn();
|
||||||
void setChatSendMessageWithCtrlReturn(bool bValue);
|
void setChatSendMessageWithCtrlReturn(bool bValue);
|
||||||
|
|
||||||
|
bool getChatDoNotSendIsTyping();
|
||||||
|
void setChatDoNotSendIsTyping(bool bValue);
|
||||||
|
|
||||||
bool getChatSendAsPlainTextByDef();
|
bool getChatSendAsPlainTextByDef();
|
||||||
void setChatSendAsPlainTextByDef(bool bValue);
|
void setChatSendAsPlainTextByDef(bool bValue);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue