fixed settings for tray message enable/disable

now it can be enabled and disabled at runtime

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3141 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2010-06-15 16:51:48 +00:00
parent 6d3db4ae66
commit 1585859896
7 changed files with 90 additions and 73 deletions

View file

@ -132,6 +132,8 @@ void RshareSettings::initSettings()
setDefault(SETTING_NEWSFEED_FLAGS, defNewsFeed);
setDefault(SETTING_CHAT_FLAGS, defChat);
setDefault(SETTING_NOTIFY_FLAGS, defNotify);
setDefault("DisplayTrayGroupChat", true);
}
/** Gets/sets the currently saved chat avatar. */
@ -264,6 +266,16 @@ void RshareSettings::setNotifyFlags(uint flags)
setValue(SETTING_NOTIFY_FLAGS, flags);
}
bool RshareSettings::getDisplayTrayGroupChat()
{
return value("DisplayTrayGroupChat").toBool();
}
void RshareSettings::setDisplayTrayGroupChat(bool bValue)
{
setValue("DisplayTrayGroupChat", bValue);
}
/** Returns true if RetroShare is set to run on system boot. */
bool
RshareSettings::runRetroshareOnBoot()