mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 17:09:34 -05:00
hide typing notification setting in chat options by default
This commit is contained in:
parent
9268fd5ff0
commit
58c296c69d
@ -34,6 +34,7 @@
|
||||
#include "gui/chat/ChatDialog.h"
|
||||
#include "gui/notifyqt.h"
|
||||
#include "rsharesettings.h"
|
||||
#include <retroshare/rsconfig.h>
|
||||
|
||||
#include <retroshare/rshistory.h>
|
||||
#include <retroshare/rsmsgs.h>
|
||||
@ -132,7 +133,7 @@ ChatPage::save(QString &/*errmsg*/)
|
||||
Settings->setChatSendAsPlainTextByDef(ui.sendAsPlainTextByDef->isChecked());
|
||||
Settings->setChatLoadEmbeddedImages(ui.loadEmbeddedImages->isChecked());
|
||||
Settings->setChatDoNotSendIsTyping(ui.DontSendTyping->isChecked());
|
||||
|
||||
|
||||
Settings->setChatSearchCharToStartSearch(ui.sbSearch_CharToStart->value());
|
||||
Settings->setChatSearchCaseSensitively(ui.cbSearch_CaseSensitively->isChecked());
|
||||
Settings->setChatSearchWholeWords(ui.cbSearch_WholeWords->isChecked());
|
||||
@ -243,6 +244,12 @@ ChatPage::load()
|
||||
ui.loadEmbeddedImages->setChecked(Settings->getChatLoadEmbeddedImages());
|
||||
ui.DontSendTyping->setChecked(Settings->getChatDoNotSendIsTyping());
|
||||
|
||||
std::string advsetting;
|
||||
if(rsConfig->getConfigurationOption(RS_CONFIG_ADVANCED, advsetting) && (advsetting == "YES"))
|
||||
{ }
|
||||
else
|
||||
ui.DontSendTyping->hide();
|
||||
|
||||
ui.sbSearch_CharToStart->setValue(Settings->getChatSearchCharToStartSearch());
|
||||
ui.cbSearch_CaseSensitively->setChecked(Settings->getChatSearchCaseSensitively());
|
||||
ui.cbSearch_WholeWords->setChecked(Settings->getChatSearchWholeWords());
|
||||
|
Loading…
Reference in New Issue
Block a user