mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-08 22:52:54 -04:00
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:
parent
6d3db4ae66
commit
1585859896
7 changed files with 90 additions and 73 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue